## 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 [System.Drawing](../../systemfonts/)
* assembly [Aspose.Drawing](../../../)


