Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5    Statistic  

Font.Activate

Activates a font inside app or whole computer.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Font 2.6 Yes Yes No No No
MBS( "Font.Activate"; path; local )   More

Parameters

Parameter Description Example value
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. 0

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

Example Databases

Created 18th August 2014, last changed 18th October 2016


Folders.Windows   -   Font.CalculateTextFits

Feedback: Report problem or ask question.




Links
MBS FileMaker blog