---
title: "IFontSource.GetFont Method "
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Templates_IFontSource_GetFont_2_f3570541.htm
product: "Graphics Mill"
---

# IFontSource.GetFont Method 
 
Gets a font from the source.
 
**Namespace:** [Aurigma.GraphicsMill.Templates](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Templates.htm.md)
 **Assembly:** Aurigma.GraphicsMill.Templates (in Aurigma.GraphicsMill.Templates.dll)
 
## Syntax
  
```csharp
                string GetFont(string fontName,string cachePath
)
```
 
### Parameters
 
 - fontName
     - Type: System.String
The name of the font.

 - cachePath
     - Type: System.String
 
### Return Value
The font data as a byte array.
   
## See Also

### Reference

- [IFontSource Interface](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Templates_IFontSource.htm.md)
- [Aurigma.GraphicsMill.Templates Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Templates.htm.md)
