---
title: "Graphics.CreateFont Method (String, String, Single)"
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Drawing_Graphics_CreateFont_3_2557116e.htm
product: "Graphics Mill"
---

# Graphics.CreateFont Method (String, String, Single)
 
Returns the [Font](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Font.htm.md) instance with the given family name, style, and size, if such font is presented in this [Graphics.FontRegistry](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Drawing_Graphics_FontRegistry.htm.md). The font's DPI is the same as the DPI of the [Graphics](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Graphics.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 family,string style,float size
)
```
 
### Parameters
 
 - family
     - Type: System.String
Font family name.

 - style
     - Type: System.String
Font style.

 - size
     - Type: System.Single
Font size.
 
### Return Value
Font having the given parameters.
 
## Remarks
  
The font's DPI is the same as the DPI of the [Graphics](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Graphics.htm.md).
   
## See Also

### Reference

- [Graphics Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Graphics.htm.md)
- [CreateFont Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Drawing_Graphics_CreateFont.htm.md)
- [Aurigma.GraphicsMill.Drawing Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Drawing.htm.md)

### Manual

- [Drawing Simple Text Objects](https://www.graphicsmill.com/docs/gm/advanced-drawing-text.htm.md)
- [Working with Font Registry](https://www.graphicsmill.com/docs/gm/working-with-font-registry.htm.md)
