Brian Dunning's FileMaker Custom Functions

GetTextStyle ( text )

Get text formatting assigned to a field or text

  Average rating: 4.3 (28 votes) Log in to vote

Marco Terrile   Marco Terrile

Share on Facebook Share on Twitter

  Sample input:
GetTextStyle ("a text formatted as Verdana 14 bold, italic, underline and red")
  Sample output:

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Sintax: GetTextStyle ( text )

Parameter: "text" = any text expression or text field formatted with colors and styles other than default formatting of the field.

Font, Size, Style and RGB Color (only first style encountered by funcrion GetAsCSS) as "¶" separated list. Style is returned as "bold+italic+underline"... ecc. Color is returned as RGB number. If no formatting is applied the corresponding value is empty.
Warning, are returned only formatting other than the default ones of the field.

Let's say you have a field formatted as Arial 12 plain, black. If IN BROWSE MODE you change text formatting in - Verdana 14 bold, italic, underline, red - the CF returns:




Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth:

Under construction. Email me your wish list for improvements.