---
title: "SystemFonts.GetFontByName"
url: "https://reference.aspose.com/drawing/net/aspose.drawing/systemfonts/getfontbyname/"
product: "Aspose.Drawing for .NET API Reference"
description: "SystemFonts method. Returns a font object that corresponds to the specified system font name"
---

## SystemFonts.GetFontByName method

Returns a font object that corresponds to the specified system font name.

```csharp
public static Font GetFontByName(string systemFontName)
```

| Parameter | Type | Description |
| --- | --- | --- |
| systemFontName | String | The name of the system font you need a font object for. |

### Return Value

A Font if the specified name matches a value in SystemFonts; otherwise, null.

### See Also

* class [Font](../../font/)
* class [SystemFonts](../)
* namespace [Aspose.Drawing](../../systemfonts/)
* assembly [Aspose.Drawing.Common](../../../)


