Predefined Variables

Predefined Variables

Previous 

Common font variables

These variables can be used in several places where variables are supported, including preview text, print, and font export.

Variable

Content of the variable

{FONT_NAME}

The name of the font, for example Times New Roman Bold Italic.

{FONT_FAMILY}

The font family name of the font, for example Times New Roman.

{FONT_STYLE}

The style of the font, for example Bold Italic.

{FONT_VERSION}

The version of the font, for example Version 2.90.

{FONT_TYPE}

The font type, for example OpenType font with TrueType outlines.

{FONT_EMBEDDING}

The font embedding, for example Installable.

{FONT_WEIGHT}

The font weight, for example Bold

{FONT_WIDTH}

The font width, for example Condensed

{FONT_FILE_SIZE}

The size of the font file, for example 48 KB.

{FONT_FILE_SIZE_BYTES}

The size of the font file in bytes, for example 3662.

{FONT_GLYPHS}

The number of glyphs

{FONT_CHARS}

The number of characters

{FONT_FOUNDRY}

The font foundry

Additional font variables for Print and HTML Export

These variables can also be used in print and font export.

Variable

Content of the variable

{FONT_PANOSE}

The font PANOSE value in hexadecimal format, for example 2B66222324

{FONT_COPYRIGHT}

The font copyright information.

{FONT_COPYRIGHT_100}

The font copyright information, limited to 100 characters, at most.

{FONT_COPYRIGHT_150}

The font copyright information, limited to 150 characters, at most.

{FONT_TRADEMARK}

The font trademark information.

{FONT_TRADEMARK_100}

The font trademark information, limited to 100 characters, at most.

{FONT_TRADEMARK_150}

The font trademark information, limited to 150 characters, at most.

{FONT_DESIGNER}

Link to the font designer.

{FONT_VENDOR}

Link to the font vendor.

{FONT_GROUPS}

All groups containing this font separated by a "-". Excluding the parent groups

{FONT_GROUPS_FULL}

All groups containing this font separated by a "-". Including the parent groups

{FONT_TAGS}

The tags assigned to this font

Predefined web export variables

These variables can be used in template file mainpage.htf.

Variable

Content of the variable

{FONT_COUNT}

The total number of fonts in the web export.

{GEN_DATE_TIME}

The date and time that the web export was initiated.

{NAV_ALPHABET}

Displays a navigation bar.

These variables can be used in template file fontpage.htf.

Variable

Content of the variable

{CUR_SUB_COL}

Display the current navigation id.

{FONT_COUNT}

The total number of fonts in the web export.

{FONT_LIST}

A list of fonts that is composed with template fontitem.htf.

{TITLE}

The total number of fonts in the web export.

{NAV_ALPHABET}

Displays a navigation bar.

{NAV_SUB_PAGES}

Displays a navigation bar for sub pages.

Variables used in template fontitem.htf include the predefined font variables mentioned earlier as well as these variables:

Variable

Content of the variable

{FONT_PREVIEW_REL}

The relative URI of the font preview image.

{FONT_TYPE_REL}

The relative URI of the font type image.

{WEB_EXPORT_FONT_ID}

In the scope of the web export, this is a unique id. In the default template it is used as anchor name.

Predefined page print variables

All date and time variables use the corresponding date and time formats set in the Windows configuration on the computer on which you are running MainType.

Variable

Content of the variable

{DATE_TIME}

The current date and time.

{DATE}

The current date.

{TIME}

The current time.

{PAGE_NUMBER}

The number of the current page.

{NUMBER_OF_PAGES}

The total number pages.

{TITLE}

The title of the selected report.