Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Text.Styles
Queries style information as JSON.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Text | 9.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "Text.Styles"; Text ) More
Parameters
Parameter | Description | Example |
---|---|---|
Text | The styled text to check. | "Hello World" |
Result
Returns JSON or error.
Description
Queries style information as JSON.Returns a JSON array with objects containing details.
Includes booleans hasColor, hasFont, hasSize and hasFace to inform you which features are available for text block.
If hasColor is true, you can get color (numeric), colorHex (string) and values in range 0 to 255 for red, blue, green and alpha.
If hasFont is true, you can get fontID, fontScript and font with the name.
If hasSize is true, the size field contains the size of the font in points.
If hasFace is true, you get the face as integer. We also provide bold, italic, underline, outline, shadow, condense, extend, strikethrough, smallCaps, superscript, subscript, wordUnderline and doubleUnderline as booleans.
See also Text.FromStyles function to do the reverse.
Examples
Check some text:
MBS("Text.Styles"; TextColor ( "Hello" ; RGB ( 255 ; 0 ; 0 ) ))
Example result:
[{
"hasColor": true,
"color": 16711680,
"colorHex": "FF0000",
"red": 255,
"green": 0,
"blue": 0,
"alpha": 255,
"hasFont": false,
"hasSize": false,
"hasFace": false
}]
See also
Release notes
- Version 9.3
- Added Text.Styles function.
Example Databases
Blog Entries
- New in MBS FileMaker Plugin 11.3
- Neues MBS FileMaker Plugin 11.3
- MBS FileMaker Plugin 11.3 - More than 6500 Functions In One Plugin
- Neues vom MBS Plugin 9.3
- Whats new in MBS FileMaker Plugin version 9.3
- Neues MBS FileMaker Plugin 9.3 - Über 5900 Funktionen in einem Plugin
- MBS FileMaker Plugin 9.3 - More than 5900 Functions In One Plugin
- MBS FileMaker Plugin, version 9.3pr5
This function checks for a license.
Created 9th July 2019, last changed 22nd June 2021
