Skip To Content

INTEGRAL

Configure Initial Font List

Overview

Assuming that <integral_extract_dir> is the directory where you extracted the INTEGRAL ZIP archive, the Initial Font List will have the following path:

<integral_extract_dir>/exec/system/ini/fontlist.fls

This configuration file contains a list of fonts that INTEGRAL Engine will automatically add to its Font Catalog during the initialization process. Typically, the Initial Font List is used to load INTEGRAL's core fonts and any other fonts that are important for INTEGRAL Engine and/or its applications to function properly (e.g. fonts used to produce mathematical symbols, notes, icons etc). You may want to add your own fonts to this file, if necessary.

To see the fonts that were added to INTEGRAL Engine's Font Catalog using the Initial Font List, simply launch INTEGRAL Font Viewer and select Font → Choose... from the main menu.

Sample Configuration

fontlist.fls

# *** INTEGRAL INITIAL FONT LIST ***
#
# This file contains a list of fonts that will be added to the INTEGRAL Font Catalog
# automatically. Each row in this list consists of the following parameters:
#
# * font_format_id - Font Format ID. This is an ID that specifies the font format:
#
#     0 : D-Type font (.dtf)
#     3 : OpenType font (.ttf or .otf) and font collections (.ttc) with TrueType outlines
#     5 : OpenType font (.otf) and font collections (.ttc) with CFF outlines
#     8 : Adobe Type 1 font (.pfb or .pfa)
#    11 : Adobe Type 3 PostScript font (.ps) - ISO Latin Encoding
#    12 : Adobe Type 3 PostScript font (.ps) - Synthesized Unicode Encoding
#    16 : Bare CFF font (.cff)
#
#   Other values are also supported. See the manual for details.
#
# * font_uid - Unique Font Identifier
#
#   This is an optional but recommended string that uniquely identifies the font.
#   If not needed, set to NULL. Otherwise, the string must consist of precisely
#   16 ASCII characters.
#
# * font_collection_nr - Font Collection Number
#
#   When the font file is a font collection, this is the index of a font in that
#   collection. Set to 0 to add the first font in the collection or if the font file
#   is not a collection.
#
# * font_cmap_id - Reserved for future. Must be set to -1.
#
# * font_caching - Font Access and Caching. The following values are recommended:
#
#     0 : legacy method
#   128 : standard method
#
# * font_hinting - Font Hinting. This parameter can have one of the following values:
#
#     0 : disable hinting
#     1 : use native hinting when available; auto-hinting otherwise
#     2 : use auto-hinting exclusively
#     3 : use native hinting when available; compact auto-hinting otherwise
#     4 : use compact auto-hinting exclusively
#
# * nr_of_streams - Number of streams that will supply the font data.
#
#   Most font formats contain all font data in a single stream (file). Therefore, this
#   parameter is typically 1. Some font formats (e.g. Type 1) may supply additional
#   font data via additional streams. In this case nr_of_streams will be greater than 1.
#   See the manual for details on how those font formats utilize the additional streams.
#
# * stream_sequence - A sequence of nr_of_streams stream descriptors that supply font data.
#
#   Each stream descriptor consists of the following two parameters:
#
#     * stream_id - identifies the stream type:
#
#         0 : Default Stream Type. Same as File Stream.
#         1 : File Stream
#         5 : URL Stream (File-Backed)
#         6 : URL Stream (Memory-Backed)
#
#     * stream_locator - stream type specific locator (e.g. file path or URL).
#
#   Regardless of the font format, the first stream descriptor in the array always
#   supplies vital font data. 
#
# * reserved  - Reserved for future. Must be set to NULL.
#
# The parameters in each row must be separated by a single comma and specified in precisely
# the same order as listed above.

{
5,F0010_CMBRGH_SS0,0,-1,128,2,1,0,../fonts/cm-unicode-bright-0.6.3/cmunbmr.otf,NULL
5,F0010_CMBRGH_SS4,0,-1,128,2,1,0,../fonts/cm-unicode-bright-0.6.3/cmunbmo.otf,NULL
5,F0010_CMBRGH_XS0,0,-1,128,2,1,0,../fonts/cm-unicode-bright-0.6.3/cmunbsr.otf,NULL
5,F0010_CMBRGH_XS4,0,-1,128,2,1,0,../fonts/cm-unicode-bright-0.6.3/cmunbso.otf,NULL
5,F0010_CMBRGH_cS0,0,-1,128,2,1,0,../fonts/cm-unicode-bright-0.6.3/cmunbbx.otf,NULL
5,F0010_CMBRGH_cS4,0,-1,128,2,1,0,../fonts/cm-unicode-bright-0.6.3/cmunbxo.otf,NULL
5,F0011_CMCONC_SS0,0,-1,128,2,1,0,../fonts/cm-unicode-concrete-0.6.3/cmunorm.otf,NULL
5,F0013_CMCONC_SS4,0,-1,128,2,1,0,../fonts/cm-unicode-concrete-0.6.3/cmunoti.otf,NULL
5,F0011_CMCONC_cS0,0,-1,128,2,1,0,../fonts/cm-unicode-concrete-0.6.3/cmunobx.otf,NULL
5,F0013_CMCONC_cS4,0,-1,128,2,1,0,../fonts/cm-unicode-concrete-0.6.3/cmunobi.otf,NULL
5,F0013_CMTYPW_NS0,0,-1,128,2,1,0,../fonts/cm-unicode-typewriter-0.6.3/cmunbtl.otf,NULL
5,F0013_CMTYPW_NS4,0,-1,128,2,1,0,../fonts/cm-unicode-typewriter-0.6.3/cmunbto.otf,NULL
5,F0013_CMTYPW_SS0,0,-1,128,2,1,0,../fonts/cm-unicode-typewriter-0.6.3/cmuntt.otf,NULL
5,F0013_CMTYPW_SS4,0,-1,128,2,1,0,../fonts/cm-unicode-typewriter-0.6.3/cmunst.otf,NULL
5,F0113_CMTYPW_SS4,0,-1,128,2,1,0,../fonts/cm-unicode-typewriter-0.6.3/cmunit.otf,NULL
5,F0013_CMTYPW_cS0,0,-1,128,2,1,0,../fonts/cm-unicode-typewriter-0.6.3/cmuntb.otf,NULL
5,F0113_CMTYPW_cS4,0,-1,128,2,1,0,../fonts/cm-unicode-typewriter-0.6.3/cmuntx.otf,NULL
5,F0213_CMTYPW_SS0,0,-1,128,2,1,0,../fonts/cm-unicode-typewriter-0.6.3/cmunvt.otf,NULL
5,F0213_CMTYPW_SS4,0,-1,128,2,1,0,../fonts/cm-unicode-typewriter-0.6.3/cmunvi.otf,NULL
5,F0010_CMSANS_SS0,0,-1,128,2,1,0,../fonts/cm-unicode-sans-0.6.3/cmunss.otf,NULL
5,F0010_CMSANS_SS4,0,-1,128,2,1,0,../fonts/cm-unicode-sans-0.6.3/cmunsi.otf,NULL
5,F0010_CMSANS_cS0,0,-1,128,2,1,0,../fonts/cm-unicode-sans-0.6.3/cmunsx.otf,NULL
5,F0010_CMSANS_cS4,0,-1,128,2,1,0,../fonts/cm-unicode-sans-0.6.3/cmunso.otf,NULL
5,F0010_CMSANS_XI0,0,-1,128,2,1,0,../fonts/cm-unicode-sans-0.6.3/cmunssdc.otf,NULL
5,F0011_CMSERF_SS0,0,-1,128,2,1,0,../fonts/cm-unicode-serif-0.6.3/cmunrm.otf,NULL
5,F0011_CMSERF_SS4,0,-1,128,2,1,0,../fonts/cm-unicode-serif-0.6.3/cmunti.otf,NULL
5,F0111_CMSERF_SS4,0,-1,128,2,1,0,../fonts/cm-unicode-serif-0.6.3/cmunci.otf,NULL
5,F0011_CMSERF_SSD,0,-1,128,2,1,0,../fonts/cm-unicode-serif-0.6.3/cmunui.otf,NULL
5,F0011_CMSERF_SSA,0,-1,128,2,1,0,../fonts/cm-unicode-serif-0.6.3/cmunsl.otf,NULL
5,F0011_CMSERF_cS0,0,-1,128,2,1,0,../fonts/cm-unicode-serif-0.6.3/cmunrb.otf,NULL
5,F0011_CMSERF_cc0,0,-1,128,2,1,0,../fonts/cm-unicode-serif-0.6.3/cmunbx.otf,NULL
5,F0013_CMSERF_cc4,0,-1,128,2,1,0,../fonts/cm-unicode-serif-0.6.3/cmunbi.otf,NULL
5,F0011_CMSERF_ccA,0,-1,128,2,1,0,../fonts/cm-unicode-serif-0.6.3/cmunbl.otf,NULL
5,F0011_STIX1I_NS0,0,-1,128,2,1,0,../fonts/stix-1.1.0/STIXIntegralsD-Regular.otf,NULL
5,F0111_STIX1I_NS0,0,-1,128,2,1,0,../fonts/stix-1.1.0/STIXIntegralsUpD-Regular.otf,NULL
5,F0011_STIX1__NS0,0,-1,128,2,1,0,../fonts/stix-1.1.0/STIXGeneral-Regular.otf,NULL
5,F0011_STIX1__NS4,0,-1,128,2,1,0,../fonts/stix-1.1.0/STIXGeneral-Italic.otf,NULL
5,F0011_STIX1__cS0,0,-1,128,2,1,0,../fonts/stix-1.1.0/STIXGeneral-Bold.otf,NULL
5,F0011_STIX1__cS4,0,-1,128,2,1,0,../fonts/stix-1.1.0/STIXGeneral-BoldItalic.otf,NULL
5,F0011_STIX2M_NS0,0,-1,128,2,1,0,../fonts/stix-2.0.2/STIX2Math.otf,NULL
5,F0011_STIX2__NS0,0,-1,128,2,1,0,../fonts/stix-2.0.2/STIX2Text-Regular.otf,NULL
5,F0011_STIX2__NS4,0,-1,128,2,1,0,../fonts/stix-2.0.2/STIX2Text-Italic.otf,NULL
5,F0011_STIX2__cS0,0,-1,128,2,1,0,../fonts/stix-2.0.2/STIX2Text-Bold.otf,NULL
5,F0011_STIX2__cS4,0,-1,128,2,1,0,../fonts/stix-2.0.2/STIX2Text-BoldItalic.otf,NULL
0,F0016_SCRIPT_SS0,0,-1,128,1,1,0,../fonts/system-1.0.0/script.dtf,NULL
11,F0010_DTSYSA_SS0,0,-1,128,1,1,0,../fonts/system-1.0.0/system.pfa,NULL
}

# END OF FILE

Configuration File Structure

The Initial Font List is a standard UTF-8 text file that can be edited using any text editor. The CR, LF or CR+LF character serves as the newline character. Any characters with the corresponding ASCII value less than 32 (i.e. control characters) are ignored. The null character (ASCII value 0) is invalid.

The Initial Font List consists of precisely one initialization section, which contains multiple list rows. A single opening curly bracket on its own line signals the start of the initialization section, while a single closing curly bracket on its own line signals the section's end. List rows are separated by a single newline character. Each list row adds one font to the INTEGRAL Font Catalog.

The initialization parameters within each list row are delimited by a single comma. These parameters must be specified in precisely the same order as shown below and cannot contain the newline character (CR, LF or CR+LF), comma or opening/closing curly bracket [*].

Lines outside the initialization section represents comments. Comments are optional but useful. To make it more clear that a text line is a comment, we recommend placing the # character at its beginning. Comments are completely ignored by INTEGRAL Engine.

List Row Parameters

font_format_id

This is an ID that uniquely identifies the font format (e.g. D-Type, TrueType, OpenType, Type 1, PostScript Type 3, bare CFF). This parameter must match the actual format of the font that is being added to the Font Catalog, otherwise the font will fail to load.

The following font_format_id values should be used by all modern INTEGRAL applications:

In addition to the above values, font_format_id can also be set to -1 or -2. These special values do not specify any particular font format but tell INTEGRAL Engine to automatically detect the font's format by inspecting the corresponding font file/stream. This is useful when the font's format is not known in advance or the application doesn't care what format the font is in. However, this way of adding the fonts to the Font Catalog is a little slower — since the corresponding file/stream must be opened and its contents inspected. The only difference between these two special values is that -1 tries to activate the font to level 1 (Basic Activation), while -2 tries to activate it to level 2 (Full Activation). Thus, -2 is a bit slower but its key advantage over -1 is that it performs a more thorough validation of the font.

font_uid

This is an optional but recommended string that uniquely identifies the newly added font. If your application will not make use of this string, set font_uid to NULL. Otherwise, this must be a string consisting of precisely 16 ASCII characters. Contact INTEGRAL Systems for additional help with this parameter.

font_collection_nr

Some font files are font collections, which means they contain more than a single font. The font_collection_nr parameter, or font collection number, is the index of a font in that collection. Set the font collection number to 0 to open the first font in the collection or if the font file is not a collection.

If font_collection_nr exceeds the total number of fonts in the collection, the newly added font will fail to load.

font_cmap_id

This parameter is reserved for future use and must be set to -1.

font_caching

This parameter tells INTEGRAL Engine how to access and cache the font. This parameter will be described more thoroughly in the future. For now, only values 0 and 128 are documented.

When an application attempts to access a font, INTEGRAL Engine obtains its file location from the Font Catalog and attempts to open the corresponding file/stream. If this file/stream is inaccessible (due to an invalid file name/file path, lack of adequate read permissions, invalid font format, corrupt file or any other reason), the actual attempt to open this font will cause a small performance penalty. This is usually not noticeable, if done only once. However, when many attempts to access such fonts are made in a short period of time, the performance penalty may become noticeable.

When font_caching = 128, any font that cannot be opened on first attempt will be marked as "dead" and INTEGRAL Engine will not make further attempts to open it later, even though it is theoretically possible that the corresponding file/stream could become valid at some point. When font_caching = 0, INTEGRAL Engine will attempt to open the requested font each time such a request is made; in other words the font is not considered "dead" just because the first attempt to open it failed.

Application developers need to choose which of the above access/caching methods works best in their specific application.

font_hinting

This parameter tells INTEGRAL Engine whether to apply hinting to the font. Hinted fonts usually produce better looking and crisper output (especially at smaller font sizes), however they are somewhat slower to process than non-hinted fonts (especially if they contain many complex glyphs such as in Chinese/Japanese/Korean fonts).

Currently, this parameter can have one of the following values:

The first option, font_hinting = 0, should be used when crisp font output is not needed or desired. However, if crisp font output is important, the second option, font_hinting = 1, is typically the best choice. The third option, font_hinting = 2, can be used when the corresponding font is poorly hinted or is not hinted at all.

The last two options, font_hinting = 3 and font_hinting = 4, are identical to the previous two, font_hinting = 1 and font_hinting = 2, but employ a compact auto-hinting scheme. Fonts that use compact auto-hinting look and behave the same as fonts that use regular auto-hinting but have somewhat reduced storage requirements.

nr_of_streams

Most font formats contain all vital font data in a single stream (file). Therefore, this parameter is typically 1. Some font formats (e.g. Type 1) may supply additional font data via additional streams. In this case nr_of_streams will be greater than 1.

Regardless of how many streams you specify, the first input stream always supplies vital font data and is called the main input file; any additional input streams (if applicable) are format specific and must follow in a predetermined order. Contact INTEGRAL Systems for additional help with this parameter.

stream_sequence

This is a sequence of precisely nr_of_streams stream descriptors that supply font data. Each stream descriptor consists of the following two parameters:

stream_id

Describes the stream type and tells INTEGRAL Engine how to interpret stream_locator. The following values are supported:

stream_locator

Supplies the actual location of the font file. Depending on stream_id, this is either a font's file path or URL. File paths are relative to INTEGRAL Application Server's working directory.

reserved

This parameter is reserved for future use and must be set to NULL.