Font Directory
This section describes the directory section of a font resource. A font
resource contains a directory consisting of a set of structures each containing
the metrics of a font and a pointer to the font itself. This font directory
is generated by the resource compiler.
The format of the font directory is:
typedef struct {
USHORT usHeaderSize;
USHORT usnFonts;
USHORT usiMETRICS;
FONTENTRY fntEntry[1];
} FONTDIRECTORY;
typedef struct {
USHORT usIndex;
FONTFILEMETRICS metrics;
} FONTENTRY;
Where:
usHeaderSize
The size of the header, in bytes.
usnFonts
The number of fonts in the resource.
usiMetrics
The size of the FOCAMETRICS structures that follow
the header. Note that the set of metrics for all the fonts in the resource
follow the header.
usIndex
The
index of a particular font; an identifier assigned to the font when the
resource was created (defined in the .RC file).
metrics
The font metrics structure for the font. This is
identical to a FOCAMETRICS structure with the addition of the PANOSE fields
to the end.
[Back: Additional Metrics]
[Next: Definitions of Terms Used When Describing Fonts]