Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
6.2 Font
Font resources consist of System Installed Fonts, True Type Fonts (TTF) and Windows Fonts (FNT). The three different font
resources will be converted into a common data structure used by Microchip Graphics Layer. The Font Format topic gives a
detailed overview of the data structure used by the Microchip Graphics Layer. To limit the data storage required by the font
characters, the GRC allows for a font filter file. This filter file will allow for specific characters or phrases to be converted, thus
saving on overall resource requirement. For example the phrase "HELLO" only needs four characters. Using a font filter file
will allow for only the four characters to be converted. You can refer to the font filter topic for more information and examples.
Extended Glyph
Unlike ASCII characters, there are Unicode characters which the cursor advancement and the character width are not equal.
These character set, mostly Asian, need more information to correctly display a set of characters. Using an extended glyph
entry allows for more information than the standard glyph entry. The extended glyph entry contains the glyph width, cursor
position, x and y adjustment, as well as the location of the glyph. This extra information allows the graphics library to correct
position the next character to the correct position. The Extended Glyph option needs to be selected to generate this
information. This feature is available to installed and imported TTF fonts.
Anti-aliasing
Anti-aliasing is supported as a way to reduce the pixelization found in non anti-aliased fonts. The type of fonts supported are
installed and TTF fonts. The window font files, FNT, do not support anti-aliasing. The anti-aliasing depth supported is 2bpp.
The user may select anti-aliasing on a per font biases. It is recommended not to use anti-aliasing on small fonts under 10
pixels in height.
Font Filter
Name Description
Font Filter File Format ( see page 24) The font filter file is a text file created in a text editor capable of handling
Unicode fonts and saving text files in 16-bit Unicode format. The format
of the filter file is shown below:
Font Reference File Output ( see page 24) The font reference file is created to help in the usage of the filtered font
table and referencing strings in the application. An example of the output
of the font reference file is shown below:
Generating Reduced Font Tables ( see page
25)
When using a font filter, the generated font table will only include
characters in the strings section of the filter file (see Font Filter File
Format ( see page 24) for details). To maintain the character ID's of the
standard ASCII character table use the special string label "include" and
include all the characters in the string from character ID 32 to 127.
6.2.1 Font Format
The following tables describe the data structures used by the Microchip Graphics Library to decode the font data.
Font Data Structure
Font Structure
Font Header
6.2 Font Graphics Resource Converter Font Format
21
6
Protego_Release_01_05-Related-OEM-MLA-framework-gfx-utilities-grc-Graphics_Resource_Converter_Help.pdf