GMImage.GetFont
---------------

Queries the Text rendering font.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [GraphicsMagick](component_GraphicsMagick.md) | [2.0](newinversion20.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "GMImage.GetFont"; ImageRef ) 

**MBS**( **"GMImage.GetFont";** /\* Queries the Text rendering font. \*/  
**$ImageRef**) /\* The image reference number.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |

### Result

Returns a string.

### Description

Queries the Text rendering font.  
### See also

- [GMImage.GetQuiet](GMImageGetQuiet.md)
- [GMImage.GetScene](GMImageGetScene.md)
- [GMImage.GetSize](GMImageGetSize.md)
- [GMImage.GetType](GMImageGetType.md)
- [GMImage.GetView](GMImageGetView.md)
- [GMImage.GetWidth](GMImageGetWidth.md)
- [GMImage.GetXMP](GMImageGetXMP.md)
- [GMImage.GetZPL](GMImageGetZPL.md)
- [GMImage.Segment](GMImageSegment.md)
- [GMImage.SetFont](GMImageSetFont.md)

### Release notes

- **Version 10.4**
    - Added [GMImage.GetFontFamily](https://www.mbsplugins.eu/GMImageGetFontFamily.shtml), [GMImage.GetFontStretch](https://www.mbsplugins.eu/GMImageGetFontStretch.shtml), [GMImage.GetFontStyle](https://www.mbsplugins.eu/GMImageGetFontStyle.shtml), [GMImage.GetFontWeight](https://www.mbsplugins.eu/GMImageGetFontWeight.shtml), [GMImage.SetFontFamily](https://www.mbsplugins.eu/GMImageSetFontFamily.shtml), [GMImage.SetFontStretch](https://www.mbsplugins.eu/GMImageSetFontStretch.shtml), [GMImage.SetFontStyle](https://www.mbsplugins.eu/GMImageSetFontStyle.shtml) and [GMImage.SetFontWeight](https://www.mbsplugins.eu/GMImageSetFontWeight.shtml) functions.

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[GMImage.GetFilterType](GMImageGetFilterType.md) - [GMImage.GetFontFamily](GMImageGetFontFamily.md)

[HTML Version](GMImageGetFont.shtml)