Component: Font 
----------------

Font functions.

| Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|
| [2.6](newinversion26.md "First functions introduced with version 2.6.") / [10.5](newinversion105.md "Newest functions in version 10.5.") | ✅ Yes | 🔶 78% | ❌ No | 🔶 78%, on macOS and Windows | 🔶 56% |

  
| Item | Details | Server |
|:--|:--|:--|
| [Font.Activate](FontActivate.md)   Activates a font inside app or whole computer. | Mac/Win   2.6 | ❌ Server |
| [Font.CalculateTextFits](FontCalculateTextFits.md)   Queries how many characters would fit in a space. | Mac/Win/iOS   8.4 | ✅ Server |
| [Font.CalculateTextHeight](FontCalculateTextHeight.md)   Calculates height of text. | Mac/Win/iOS   8.4 | ✅ Server |
| [Font.CalculateTextWidth](FontCalculateTextWidth.md)   Calculates width of text. | Mac/Win/iOS   6.5 | ✅ Server |
| [Font.Deactivate](FontDeactivate.md)   Deactivates a font inside app or whole computer. | Mac/Win   2.6 | ❌ Server |
| [FontManager.FontFile](FontManagerFontFile.md)   Queries the native file path to a font file. | Mac only   6.2 | ✅ Server |
| [FontManager.ImageWithSystemSymbolName](FontManagerImageWithSystemSymbolName.md)   Queries SF Symbol font for characters and returns them as image. | Mac/iOS   10.5 | ✅ Server |
| [FontManager.ListFontFamilies](FontManagerListFontFamilies.md)   Queries a list of font families. | Mac/Win/iOS   5.1 | ✅ Server |
| [FontManager.ListFonts](FontManagerListFonts.md)   Queries list of all fonts or list of fonts of a family. | Mac/Win   5.1 | ✅ Server |

9 functions shown.

These functions require a license (89%).

### Release notes

- **Version 11.0**
    - Fixed bug in [Font.Deactivate](https://www.mbsplugins.eu/FontDeactivate.shtml) for macOS, where deactivate was not working since v10.3.
- **Version 10.3**
    - Rewrote [Font.Activate](https://www.mbsplugins.eu/FontActivate.shtml) and [Font.Deactivate](https://www.mbsplugins.eu/FontDeactivate.shtml) for newer macOS versions.
- **Version 8.5**
    - Fixed bug in [Font.CalculateTextWidth](http://www.mbsplugins.eu/FontCalculateTextWidth.shtml) with loading font.
- **Version 8.4**
    - Added [Font.CalculateTextFits](http://www.mbsplugins.eu/FontCalculateTextFits.shtml) and [Font.CalculateTextHeight](http://www.mbsplugins.eu/FontCalculateTextHeight.shtml) function.

### FileMaker Magazin

- [Ausgabe 1/2021, Seite 19](https://filemaker-magazin.de/neuigkeit/4124-Appetithappen-FMM_202101)
- [Ausgabe 6/2020, Seite 27](https://filemaker-magazin.de/neuigkeit/4118-Appetithappen-FMM_202006)

### Example Databases

- [Utility functions/Calculate Text Size](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Utility%20functions/Calculate%20Text%20Size.shtml#1299FieldAnchor_)
- [Utility functions/FontWidth](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Utility%20functions/FontWidth.shtml#1ScriptAnchor_)
- [Utility functions/Load Fonts](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Utility%20functions/Load%20Fonts.shtml#1ScriptAnchor_)

[HTML Version](component_FontManager.shtml)