FGID Section

The next figure shows an example of the FGID section in the csdef.fnt file.

FGID section in csdef.fnt file

[FGID]
	;fgid = familyname, style, weight, italic
	230=Gothic, MODERN,MED,0
	416=Courier,MODERN,MED,0
	2304=Helvetica,SWISS,MED,0
	2308=TimesNewRoman,ROMAN,MED,0

The FGID section lists each font global identifier and its corresponding attributes. The next figure describes the attributes and values for FGID.

FGID section

Attribute Values Shipped Default Description
familyname Any Web browser font Times New Roman An outline font name or an AFP type family name.
style
  • SWISS
  • ROMAN
  • SCRIPT
  • MODERN
  • DISPLAY
ROMAN  
weight LIGHT, MED, BOLD MED The degree of boldness of a typeface caused by different thicknesses of the strokes that form a graphic character.
italic
  • 1 = YES
  • 2 = NO
0 A font whose characters slant to the right.
    Note:
  1. familyname is the same as type family in AFP fonts and typeface name in Windows.
  2. SWISS is a proportionally spaced, sans serif font.
  3. ROMAN is a proportionally spaced, serif font.
  4. SCRIPT is a fixed-pitch font designed to look like handwriting.
  5. MODERN is a fixed-pitch, sans serif or serif font.
  6. DISPLAY is a decorative font.

Rules:

  1. Attributes must be separated by a comma.
  2. In the CHARSET section of the file, only fgid and height are required.
  3. In the FGID section of the file, only familyname and style are required.
  4. A question mark (?) can only be used as the wildcard character for the second character in the character set name. With this rule, all the character rotations of the coded fonts can be handled with one entry while searching.
      Note:
    • A sequential search is performed for the character set, and the first match is used, including the wildcard character.
  5. The CHARSET section must come before the FGIC section in the file.
  6. You can set a default character set. The default character set that is defined in the file must be the last entry in the CHARSET section.
  7. If you add your own AFP font character set to the CHARSET section, you must assign it a font global identifier. If the new character set has the same familyname, style, weight, and italic attributes as an existing character set, you can use the same font global identifier; otherwise, you must add a unique font global identifier to the FGID section.

    Note:
  • familyname is the same as type family in AFP fonts and typeface name in Windows.
  • SWISS is a proportionally spaced, sans serif font.
  • ROMAN is a proportionally spaced, serif font.
  • SCRIPT is a fixed-pitch font designed to look like handwriting.
  • MODERN is a fixed-pitch, sans serif or serif font.
  • DISPLAY is a decorative font.