DriveWorks Pro 16: SppFontWidthInPixels [send feedback...]

SppFontWidthInPixels

Will return the width of a text string in Millimeters for the font given.

Syntax

SppFontWidthInPixels([Text In],[Font String])

Where:

Text In is the Text to evaluated the width in Pixels for.

Font String is the Font of the Text that is being evaluated.

Example

RuleResultMeaning
SppFontWidthInPixels("DriveWorks","font-family: gill sans mt; font-size: 18pt; text-decoration:")173This is the Width in Pixels of the Text String for the given font.

Table of Contents