GMImage.SetFontStretch
----------------------

Set font stretch.

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

MBS( "GMImage.SetFontStretch"; ImageRef; Stretch ) 

**MBS**( **"GMImage.SetFontStretch";** /\* Set font stretch. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$Stretch**) /\* The font stretch.  
Can be Normal, UltraCondensed, ExtraCondensed, Condensed, SemiCondensed, SemiExpanded, Expanded, ExtraExpanded, UltraExpanded or Any.e.g. "Condensed" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| Stretch | The font stretch.   Can be Normal, UltraCondensed, ExtraCondensed, Condensed, SemiCondensed, SemiExpanded, Expanded, ExtraExpanded, UltraExpanded or Any. | "Condensed" |

### Result

Returns OK or error.

### Description

Set font stretch.  
### See also

- [GMImage.Annotate](GMImageAnnotate.md)
- [GMImage.GetFontStretch](GMImageGetFontStretch.md)
- [GMImage.SetFontFamily](GMImageSetFontFamily.md)
- [GMImage.SetFontStyle](GMImageSetFontStyle.md)
- [GMImage.SetFontWeight](GMImageSetFontWeight.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.

### Blog Entries

- [What is new in the MBS FileMaker Plugin Version 10.4](https://www.mbsplugins.de/archive/2020-09-22/What_is_new_in_the_MBS_FileMak/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 10.4pr6](https://www.mbsplugins.de/archive/2020-08-28/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 27th August 2020 , last changed 27th August 2020

  
[GMImage.SetFontPointSize](GMImageSetFontPointSize.md) - [GMImage.SetFontStyle](GMImageSetFontStyle.md)

[HTML Version](GMImageSetFontStretch.shtml)