Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Glyph Entry (First Character)
....
Glyph Entry (Last Character)
Character Glyph (First Character)
....
Character Glyph (Last Character)
Font Header
Name Bits Description
Font ID 8 User assignable ID number
Extended
Glyph Entry
1 If this bit is set, it indicates that the font uses the extended glyph entry.
If this bit is cleared, it indicates that the font uses the standard glyph entry.
Reserved 1 Set to zero
Bits per pixel 2 Bits per pixel (Used for anti-aliasing)
For example: 1 = 2^1 or 2 bpp
Orientation 2 Orientation of the character glyph (0, 90, 180, 270 degrees)
0 - Normal
1 - Characters are rotated 270 degrees clockwise
2 - Characters are rotated 180 degrees
3 - Characters are rotated 90 degrees clockwise
Reserved 2 Set to zero
First
Character
16 Character code of the first character
Example: 32 for ' ' character
Last Character 16 Character code of the last character
Example: 126 for '~' character
Height 16 The font characters height in pixels
All characters have the same height. First Character and Last Character define the first and last characters in the font image.
/****************************************
* Font header
****************************************/
0x00, // Font ID
0x00, // Font information: 1 bit per pixel, Characters zero degress rotation
0x20, 0x00, // First Character
0x7E, 0x00, // Last Character
0x11, 0x00, // Height
Standard Glyph Table Entry
Name Bits Description
Width 8 Width of the character glyph and the cursor advance.
Character Glyph Offset: LSB 8 The least significant byte of the glyph location offset.
Character Glyph Offset: MSB 16 The most significant two bytes of the glyph location offset.
The character glyph offset is the index location, in bytes, starting from the font header memory location.
/****************************************
* Font Glyph Table
****************************************/
0x07, // width of the glyph
6.2 Font Graphics Resource Converter Font Format
22
6
Protego_Release_01_05-Related-OEM-MLA-framework-gfx-utilities-grc-Graphics_Resource_Converter_Help.pdf