Commands to create, manage and destroy masters.
A master is a representation of a font that is stored outside QuesoGLC in a standard format such as TrueType or Type1.
Every master has an associated character map. A character map is a table of entries that maps integer values to the name string that identifies the characters. Unlike fonts character maps, the character map of a master can not be modified.
QuesoGLC maps the font files into master objects that are visible through the GLC API. A group of font files from a single typeface family will be mapped into a single GLC master object that has multiple faces. For example, the files Courier.pfa, Courier-Bold.pfa, Courier-BoldOblique.pfa, and Courier-Oblique.pfa are visible through the GLC API as a single master with GLC_VENDOR="Adobe", GLC_FAMILY="Courier", GLC_MASTER_FORMAT="Type1", GLC_FACE_COUNT=4 and GLC_FACE_LIST=("Regular", "Bold", "Bold Oblique", "Oblique")
Some GLC commands have a parameter inMaster. This parameter is an offset from the the first element in the GLC master list. The command raises GLC_PARAMETER_ERROR if inMaster is less than zero or is greater than or equal to the value of the variable GLC_MASTER_COUNT.
| const GLCchar * glcGetMasterMap |
( |
GLint | inMaster, |
|
|
GLint | inCode ) |
This command returns the string name of the character that the master identified by inMaster maps inCode to.
Every master has associated with it a master map, which is a table of entries that map integer values to the name string that identifies the character.
Every character code used in QuesoGLC is an element of the Unicode Character Database (UCD) defined by the standards ISO/IEC 10646:2003 and Unicode 4.0.1 (unless otherwise specified). A Unicode code point is denoted as U+hexcode, where hexcode is a sequence of hexadecimal digits. Each Unicode code point corresponds to a character that has a unique name string. For example, the code U+41 corresponds to the character LATIN CAPITAL LETTER A.
If the master does not map inCode, the command returns GLC_NONE.
- Note
- While you cannot change the map of a master, you can change the map of a font using glcFontMap().
- Parameters
-
| inMaster | The integer ID of the master from which to select the character. |
| inCode | The integer ID of character in the master map. |
- Returns
- The string name of the character that inCode is mapped to.
- See also
- glcGetMasterListc()
-
glcGetMasterc()
-
glcGetMasteri()
| void glcAppendCatalog |
( |
const GLCchar * | inCatalog | ) |
|
This command appends the string inCatalog to the list GLC_CATALOG_LIST.
The catalog is represented as a zero-terminated string. The interpretation of this string is specified by the value that has been set using glcStringType().
A catalog is a path to a list of masters. A master is a representation of a font that is stored outside QuesoGLC in a standard format such as TrueType or Type1.
A catalog defines the list of masters that can be instantiated (that is, be used as fonts) in a GLC context.
A font is a styllistically consistent set of glyphs that can be used to render some set of characters. Each font has a family name (for example Palatino) and a state variable that selects one of the faces (for example regular, bold, italic, bold italic) that the font contains. A typeface is the combination of a family and a face (for example Palatino Bold).
- Parameters
-
| inCatalog | The catalog to append to the list GLC_CATALOG_LIST |
- See also
- glcGetList() with argument GLC_CATALOG_LIST
-
glcGeti() with argument GLC_CATALOG_COUNT
-
glcPrependCatalog()
-
glcRemoveCatalog()