Additional graphics support. Has the following values:
CAPS_GRAPHICS_KERNING_SUPPORT
If 1, device supports
kerning.
CAPS_FONT_OUTLINE_DEFAULT
If 1, device has
a default outline font.
CAPS_FONT_IMAGE_DEFAULT
If 1, device has a
default image font.
CAPS_SCALED_DEFAULT_MARKERS
If 1, default
markers are to be scaled by the marker-box attribute.
CAPS_COLOR_CURSOR_SUPPORT
If 1, device supports
colored cursors.
CAPS_PALETTE_MANAGER
If 1, device supports
palette functions.
CAPS_COSMETIC_WIDELINE_SUPPORT
If 1, device
supports cosmetic thick lines.
CAPS_ENHANCED_TEXT
If 1, device supports full-font
file description and text alignment. Other bits are reserved (0).
CAPS_CLIP_FILLS
If 1, changes the behavior
of the graphics engine to call GrePolyScanline with the COM_PRECLIP flag
set. The lines are preclipped when filling areas. This flag should only
be returned to the graphics engine version number 0x202 or later (see GreQueryEngineVersion).
CAPS_PHYS_COLORS
Maximum
number of distinct colors available on the device.
CAPS_COLOR_INDEX
Maximum logical color-table index supported for
this device. For EGA and VGA drivers, this value is 63.
CAPS_GRAPHICS_CHAR_WIDTH
Default graphics character-box width in pels.
CAPS_GRAPHICS_CHAR_HEIGHT
Default graphics character-box height in pels.
CAPS_HORIZONTAL_FONT_RES
Effective horizontal device resolution in pels per
inch (for selecting fonts). For printers, this is the actual device resolution.
For displays, it can differ from the actual resolution for reasons of legibility.
CAPS_VERTICAL_FONT_RES
Effective
vertical device resolution in pels per inch (for selecting fonts).
CAPS_DEVICE_FONT_SIM
Identifies which simulations are valid on device
fonts. Valid flags are: CAPS_DEVICE_FONT_SIM_BOLD CAPS_DEVICE_FONT_SIM_ITALIC
CAPS_DEVICE_FONT_SIM_UNDERSCORE
CAPS_DEVICE_FONT_SIM_STRIKEOUT
CAPS_LINEWIDTH_THICK
Cosmetic
thickness of lines and arcs on this device when fxLineWidth is LINEWIDTH_THICK
(refer to the function "GpiSetLineWidth" in the Presentation Manager
Programming Reference). The units are in pels. A value of 0 is interpreted
as two pels.
Additional information is provided
in the device capabilities array for communication between the presentation
driver and the graphics engine. For example, the parameter CAPS_ADDITIONAL_GRAPHICS
has two extra flags and a CAPS_DEVICE_FONT_SIM field is provided.
The additional flags in CAPS_ADDITIONAL_GRAPHICS are used (in conjunction
with the CAPS_FONT_OUTLINE_DEFAULT and CAPS_FONT_IMAGE_DEFAULT flags) by
the presentation driver to indicate when the graphics engine manages the
transforms and mappings for the default fonts supplied by the driver. These
flags are:
CAPS_FONT_OUTLINE_MANAGE
Set by the presentation
driver to indicate that the graphics engine must manage the default outline
font
CAPS_FONT_IMAGE_MANAGE
Set
by the presentation driver to indicate that the graphics engine must manage
the default image font
Note: If the presentation
driver supplies the fonts but wants the graphics engine to manage them,
it must pass the font address to the graphics engine using GreQueryDevResource.
The CAPS_DEVICE_FONT_SIM field contains flags that the presentation driver
sets so that the graphics engine will handle simulations for the default
fonts supplied by the driver:
CAPS_DEV_FONT_SIM_BOLD
Indicates that the graphics
engine should simulate CDEF_BOLD for device fonts
CAPS_DEV_FONT_SIM_ITALIC
Indicates that the graphics engine should simulate
CDEF_ITALIC for device fonts
CAPS_DEV_FONT_SIM_UNDERSCORE
Indicates that the graphics engine should simulate
CDEF_UNDERSCORE for device fonts
CAPS_DEV_FONT_SIM_STRIKEOUT
Indicates that the graphics engine should simulate
CDEF_STRIKEOUT for device fonts.
Note: The
font attributes CDEF_xxx are identified by the cdef.fFlags field
in the "Character Attributes" bundle (see Character
Attributes). In the presentation driver, routines that write character
strings should check the cdef.fFlags field to determine whether the
call should be passed to the default handling routine in the graphics engine.