Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Calculates height of text.

Component Version macOS Windows Linux Server iOS SDK
Font 8.4 ✅ Yes ✅ Yes ❌ No ✅ Yes, on macOS and Windows ✅ Yes
MBS( "Font.CalculateTextHeight"; Text { ; Warp Width; Font; Size } )   More


Parameter Description Example Flags
Text The text to measure. "Hello World"
Warp Width The width of the text block to use for wrapping.
If < 50 will be set to 50 to avoid endless loops.
500 Optional
Font The font name.
Using System font in case of empty parameter.
"Arial" Optional
Size The font size to use.
Default is system font size.
12 Optional


Returns number or error.


Calculates height of text.
The plugin uses system font rendering to calculate height given your wrap width. This may be different from what FileMaker renders with it's own engine.
You can use the measured size to detect if text fits a field.

Mac result in logical points, but on Windows in pixels.


Calculates text height for a given text:

MBS( "Font.CalculateTextHeight"; "Hello World. Just a test."; 100; "Arial"; 12 )

Example result: 36

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 3th September 2018, last changed 14th July 2022

Font.CalculateTextFits - Font.CalculateTextWidth