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
Font.CalculateTextFits
Queries how many characters would fit in a space.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Font | 8.4 | Yes | Yes | No | Yes | Yes |
MBS( "Font.CalculateTextFits"; Text; MaxWidth { ; Font; Size } ) More
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| Text | The text to measure. | "Hello World" | |
| MaxWidth | The maximum width. | 100 | |
| 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 |
Result
Returns number or error.
Description
Queries how many characters would fit in a space.The plugin will check how long the text would be in points.
Than we reduce text to see how much text fits in the space and return the length of the reminding space.
Examples
Checks how much fits:
MBS( "Font.CalculateTextFits"; "Hello World"; 50; "Arial"; 12)
See also
Blog Entries
- Neues MBS FileMaker Plugin 8.4 - Über 5400 Funktionen in einem Plugin
- MBS FileMaker Plugin 8.4 - More than 5400 Functions In One Plugin
- MBS FileMaker Plugin, version 8.4pr8
Release notes
- Version 8.4
- Added Font.CalculateTextFits and Font.CalculateTextHeight function.
Created 12nd September 2018, last changed 12nd September 2018
Font.Activate - Font.CalculateTextHeight
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins