

In this article I want to introduce you the new functions from the MBS FileMaker Plugin in version 11.4.

Added RemoteControl.MouseButtons function.Added DynaPDF.GetPDFVersionEx function.MBS FileMaker Plugin, version 11.5pr1 New in this prerelease of version 11.5 of the MBS FileMaker Plugin: Since Arial bold has a separate font file called Arial-BoldMT, you can specify that to pick the bold font. Your script may then decide to cut two more characters and put in three dots.Ī specialty is that the font parameter can be a font name specifying the exact font if needed on macOS.
#DOWNLOAD MBS PLUGIN FOR MAC FULL#
This may return 8 here as 50 points don't fit the full text "Hello World", but only "Hello Wo". MBS( " Font.CalculateTextFits" "Hello World" 50 "Arial" 12) The third function Font.CalculateTextFits will take a text and return the number of characters, that fit in a given space.
#DOWNLOAD MBS PLUGIN FOR MAC WINDOWS#
The actual numbers are not identical for macOS and Windows since both OS have their own way of anti aliasing and get different sizes for various letters, even for the same font. The height returned here should be something like 36 points. This would use 100 points as wrap limit, so we get a second row of text. MBS( " Font.CalculateTextHeight" "Hello World. Now if you like to know whether text will fit in height, you can use Font.CalculateTextHeight functions. Zimmermann" fits and then you may use that one. Your calculation may for example detect that the whole name doesn't fit. MBS( " Font.CalculateTextWidth" "Hello World" "Arial" 12 ) For example Font.CalculateTextWidth can calculate the length of a text in points, so you know whether text will fit. Our plugin can help and offers a few functions related to fonts. Then FileMaker may only show "Johannes" and the whole surname wraps to second line. The common problem is that you have a long text like "Johannes Zimmermann" and the field is too small to fit the whole text. Sometimes you may want to know how much text fits a certain space or reduce text to fit.
