GMImage.SetFontWeight
---------------------

Sets font weight.

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

MBS( "GMImage.SetFontWeight"; ImageRef; Weight ) 

**MBS**( **"GMImage.SetFontWeight";** /\* Sets font weight. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$Weight**) /\* The font weight in range from 0 to 1000.  
400 is normal and 800 bold.e.g. 400 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| Weight | The font weight in range from 0 to 1000.   400 is normal and 800 bold. | 400 |

### Result

Returns OK or error.

### Description

Sets font weight.  
### See also

- [GMImage.Annotate](GMImageAnnotate.md)
- [GMImage.GetFontWeight](GMImageGetFontWeight.md)
- [GMImage.SetFontFamily](GMImageSetFontFamily.md)
- [GMImage.SetFontStretch](GMImageSetFontStretch.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.SetFontStyle](GMImageSetFontStyle.md) - [GMImage.SetGifDisposeMethod](GMImageSetGifDisposeMethod.md)

[HTML Version](GMImageSetFontWeight.shtml)