## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### FATTRS Field - fsSelection

fsSelection (USHORT) Selection indicators.

Flags causing the following features to be simulated by the system.

Note: If an italic flag is applied to a font that is itself defined as italic, the font is slanted further by italic simulation.

Underscore or strikeout lines are drawn using the appropriate attributes ( for example, color) from the character bundle (see the CHARBUNDLE datatype) , not the line bundle (see LINEBUNDLE). The width of the line, and the vertical position of the line in font space, are determined by the font. Horizontally, the line starts from a point in font space directly above or below the start point of each character, and extends to a point directly above or below the escapement point for that character.

For this purpose, the start and escapement points are those applicable to left-to-right or right-to-left character directions (see GpiSetCharDirection in Graphics Programming Interface Programming Reference ), even if the string is currently being drawn in a top-to-bottom or bottom -to-top direction.

For left-to-right or right-to-left directions, any white space generated by the character extra and character break extra attributes (see GpiSetCharExtra and GpiSetCharBreakExtra in Graphics Programming Interface Programming Reference), as well as increments provided by the vector of increments on GpiCharStringPos and GpiCharStringPosAt, are also underlined/ overstruck, so that in these cases the line is continuous for the string.

FATTR_SEL_ITALIC Generate italic font.

FATTR_SEL_UNDERSCORE Generate underscored font.

FATTR_SEL_BOLD Generate bold font. (Note that the resulting characters are wider than those in the original font.)

FATTR_SEL_STRIKEOUT Generate font with overstruck characters.

FATTR_SEL_OUTLINE Use an outline font with hollow characters. If this flag is not set, outline font characters are filled. Setting this flag normally gives better performance, and for sufficiently small characters (depending on device resolution) there may be little visual difference.