---
title: "FontRegistry.CreateFont Method (String, Single, Single, Single)"
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Drawing_FontRegistry_CreateFont_4_e130a0da.htm
archived: false
applies_to:
  - product: "Graphics Mill"
    versions: ["12.1", "6.x-12.x (may differ)"]
    entity_id: "https://www.graphicsmill.com/#software-application"
---

# FontRegistry.CreateFont Method (String, Single, Single, Single)

**Applies to:** Graphics Mill 12.1, 6.x-12.x (may differ)
 
Returns the [Font](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Font.htm.md) instance with the given postscript name, size, and DPI, if such font is presented in the [FontRegistry](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_FontRegistry.htm.md).
 
**Namespace:** [Aurigma.GraphicsMill.Drawing](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Drawing.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public Font CreateFont(string postscriptName,float size,float dpiX,float dpiY
)
```
 
### Parameters
 
 - postscriptName
     - Type: System.String
Postscript name of a font.

 - size
     - Type: System.Single
Font size.

 - dpiX
     - Type: System.Single
Horizontal resolution of the font's glyphs in DPI.

 - dpiY
     - Type: System.Single
Vertical resolution of the font's glyphs in DPI.
 
### Return Value
Font having the given parameters.
   
## See Also

### Reference

- [FontRegistry Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_FontRegistry.htm.md)
- [CreateFont Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Drawing_FontRegistry_CreateFont.htm.md)
- [Aurigma.GraphicsMill.Drawing Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Drawing.htm.md)

### Manual

- [Working with Font Registry](https://www.graphicsmill.com/docs/gm/working-with-font-registry.htm.md)
