Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Font.Activate
Activates a font inside app or whole computer.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Font | 2.6 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
MBS( "Font.Activate"; path { ; local } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
path | The native file path to the font file. | "/Users/test/Desktop/test.ttf" | |
local | Pass 1 to activate only inside app or 0 for globally. You may need to use 0 in order to let FileMaker see the font when you restart. This parameter is ignored on iOS as font activation is only local there. |
0 | Optional |
Result
Returns "OK" or error number from OS.
Description
Activates a font inside app or whole computer.It looks like FileMaker reads font list only on startup, so it may not react to loading this font.
Examples
Activate a font:
MBS( "Font.Activate"; "/Users/test/Desktop/test.ttf"; 1 )
See also
Release notes
- Version 10.3
- Rewrote Font.Activate and Font.Deactivate for newer macOS versions.
Example Databases
Blog Entries
- Neues MBS FileMaker Plugin 10.3 - Über 6200 Funktionen in einem Plugin
- MBS FileMaker Plugin 10.3 - More than 6200 Functions In One Plugin
- MBS FileMaker Plugin, version 10.3pr7
- MBS Filemaker Plugin, version 2.6pr5
This function checks for a license.
Created 18th August 2014, last changed 14th July 2022