Purpose
The Font Extension opcode is an extension of the existing Set Font opcode. Font Extension accounts for the limitation of the existing Set Font opcode which does not store the canonical name — instead it stores only the shorter logfont name. It is important that the viewers know both the canonical as well as the logfont name — especially when fonts are embedded.SyntaxThis opcode is a rendition attribute serialized with two string fields. The first field stands for the shorter logfont name of the currently selected font in the rendition. The second one is the larger canonical name for the same font. WHIP! data generators should change this rendition attribute as well whenever the font rendition attribute changes.
Opcode format | Opcode | Operand Format | Comments |
Extended ASCII | (FontExtension | <ws>'logfont name' 'canonical name'<ws> | - |
(FontExtension 'Aabced' 'Aabced Regular')
where 'Aabced' is the short logfont name of the current selected
font in the rendition, 'Aabced Regular' is the bigger canonical name for
the same font.
This opcode is serialized just before the Set Font opcode so that the canonical name is available before the actual font.