Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
FATTRS (1.2)
◄Changes► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
typedef struct _FATTRS { /* fat */
USHORT usRecordLength;
USHORT fsSelection;
LONG lMatch;
CHAR szFacename[FACESIZE];
USHORT idRegistry;
USHORT usCodePage;
LONG lMaxBaselineExt;
LONG lAveCharWidth;
USHORT fsType;
USHORT fsFontUse;
} FATTRS;
The FATTRS structure specifies the attributes of the logical font to be
created by the VioCreateLogFont or GpiCreateLogFont function.
Field Description
────────────────────────────────────────────────────────────────────────────
usRecordLength Specifies the length of the structure.
fsSelection Specifies one or more character attributes. This field
can be any combination of the following values:
Value Meaning
──────────────────────────────────────────────────────
FATTR_SEL_ITALIC Specifies italic characters.
FATTR_SEL_OUTLINE Specifies an outline font.
FATTR_SEL_STRIKEOUT Specifies strikeout characters.
FATTR_SEL_UNDERSCORE Specifies underscored
characters.
FATTR_SEL_BOLD Specifies bold characters.
lMatch Specifies the match number for a specific font. The
VioQueryFonts and GpiQueryFonts functions return a
unique match number for each font. When this number is
specified in the lMatch field, the specified font is
used. If the lMatch field is zero, the system
determines which font gives the best mapping to the
required attributes.
szFacename[FACESIZE] Specifies the typeface name of the font.
idRegistry Specifies the registry number of the font.
usCodePage Specifies the code-page identifier of the font.
lMaxBaselineExt Specifies the sum of the maximum ascender and
descender values for a font.
lAveCharWidth Specifies the average width of a character in a font.
This value is obtained by multiplying the width of
each lowercase letter by a weighted factor, adding the
results for all of the letters in the alphabet, and
dividing by 1000. The factor corresponds to the
frequency of use for a particular letter. For example,
the letter e appears frequently in text while the
letter q does not; therefore, the factor assigned to
e would be greater than the factor assigned to q.
fsType Specifies the type of the font. This field can include
one or more of the following values:
Value Meaning
──────────────────────────────────────────────────────
FATTR_TYPE_KERNING Specifies a kerned font.
FATTR_TYPE_MBCS Specifies a multiple-byte
character-set font.
FATTR_TYPE_DBCS Specifies a double-byte
character-set font.
FATTR_TYPE_ANTIALIASED Specifies an anti-aliased
font.
fsFontUse Specifies how the font is related to the character
attributes. This field can be any combination of the
following values:
Value Meaning
──────────────────────────────────────────────────────
FATTR_FONTUSE_NOMIX The application cannot
mix text and graphics.
FATTR_FONTUSE_OUTLINE Requests an outline
font.
FATTR_FONTUSE_TRANSFORMABLE Requests a transformable
font.
See Also
GpiCreateLogFont, GpiQueryFonts, VioCreateLogFont, VioQueryFonts
♦