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


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


Parameter Description Example
Text The styled text to check. "Hello World"


Returns JSON or error.


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.


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

Example Databases

Blog Entries

This function checks for a license.

Created 9th July 2019, last changed 22nd June 2021

Text.SoundExGerman - Text.TextToHTML