This section gives an explanation of how to set the fields of the FOCAMETRICS structure when developing:
The following structure contains the physical font metrics used when creating fonts. It is defined in the file \INCLUDE\PMFONT.H.
typedef struct _FOCAMETRICS { ULONG ulIdentity; ULONG ulSize; CHAR szFamilyname[32]; CHAR szFacename[32]; SHORT usRegistryId; SHORT usCodePage; SHORT yEmHeight; SHORT yXHeight; SHORT yMaxAscender; SHORT yMaxDescender; SHORT yLowerCaseAscent; SHORT yLowerCaseDescent; SHORT yInternalLeading; SHORT yExternalLeading; SHORT xAveCharWidth; SHORT xMaxCharInc; SHORT xEmInc; SHORT yMaxBaselineExt; SHORT sCharSlope; SHORT sInlineDir; SHORT sCharRot; USHORT usWeightClass; USHORT usWidthClass; SHORT xDeviceRes; SHORT yDeviceRes; SHORT usFirstChar; SHORT usLastChar; SHORT usDefaultChar; SHORT usBreakChar; SHORT usNominalPointSize; SHORT usMinimumPointSize; SHORT usMaximumPointSize; SHORT fsTypeFlags; SHORT fsDefn; SHORT fsSelectionFlags; SHORT fsCapabilities; SHORT ySubscriptXSize; SHORT ySubscriptYSize; SHORT ySubscriptXOffset; SHORT ySubscriptYOffset; SHORT ySuperscriptXSize; SHORT ySuperscriptYSize; SHORT ySuperscriptXOffset; SHORT ySuperscriptYOffset; SHORT yUnderscoreSize; SHORT yUnderscorePosition; SHORT yStrikeoutSize; SHORT yStrikeoutPosition; SHORT usKerningPairs; SHORT sFamilyClass; PSZ pszDeviceNameOffset; } FOCAMETRICS;
Note: FOCAMETRICS is a parallel structure with FONTMETRICS as returned to applications in the GpiQueryFonts and GpiQueryFontMetrics function calls.
The FONTMETRICS fields are derived from FOCAMETRICS by the Presentation Manager graphics engine. Most values are passed though unchanged. The exceptions are:
Place 850 in this field if the font is intended to support any PM supported code page.
Place 65400 in this field if the font has special glyphs, for example if it is a Symbol font.
Place other valid code pages in this field if the font is specific to this code page.
Do not place other values in this field.
See FONTMETRICS for a detailed explanation of the fields.