Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
GMImage.SetFontFamily
Set font family to use.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| GraphicsMagick | 10.4 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
Result
Returns OK or error.
Description
Set font family to use.The plugin will look through the list to find best match for combination of family, style, stretch and weight.
You can use either GMImage.SetFontFamily or GMImage.SetFont, but not both.
Setting font family clears font.
In v10.4 the selected font must resolve to one font file and may not work if multiple font faces are in one folder.
Examples
Set font family and other properties:
Set Variable [ $r ; Value: MBS("GMImage.SetFontPointsize"; $ref; 40) ]
Set Variable [ $r ; Value: MBS("GMImage.SetFontStyle"; $ref; "Italic") ]
Set Variable [ $r ; Value: MBS("GMImage.SetFontFamily"; $ref; "Times") ]
Set Variable [ $r ; Value: MBS("GMImage.SetFontStretch"; $ref; "Normal") ]
Set Variable [ $r ; Value: MBS("GMImage.SetFontWeight"; $ref; 800) ]
See also
- GMImage.Annotate
- GMImage.GetFontFamily
- GMImage.SetFont
- GMImage.SetFontPointsize
- GMImage.SetFontStretch
- GMImage.SetFontStyle
- GMImage.SetFontWeight
Blog Entries
Release notes
- Version 10.4
Created 27th August 2020, last changed 18th September 2020
GMImage.SetFont - GMImage.SetFontPointsize
Feedback: Report problem or ask question.
Links
MBS FileMaker tutorial videos