INF: Documentation for Bits in GetDeviceCaps TEXTCAPS Value

ID Number: Q74594

3.00 3.10

WINDOWS

Summary:

In the Microsoft Windows graphical environment, an applicatoin can use

the GetDeviceCaps function with the TEXTCAPS index to identify the

text capabilities of a device. The text below documents the the bits

in the value returned. The symbolic constants that identify the bits

are defined in the Microsoft Windows Software Development Kit header

file WINDOWS.H.

TC_OP_CHARACTER: "Device can do character output precision"

This bit indicates that the device can place device fonts at

any pixel location. This is required for all devices with

device fonts.

TC_OP_STROKE: "Device can do stroke output precision"

This bit indicates that the device can omit any stroke of a

device font.

TC_CP_STROKE: "Device can do stroke clip precision"

This bit indicates that device fonts can be clipped to a

pixel boundary.

TC_CR_90: "Device can do 90-degree character rotation"

This bit indicates that device fonts can be rotated at 90

degrees only.

TC_CR_ANY: "Device can do any character rotation"

This bit indicates that device fonts can be rotated at any

angle.

TC_SF_X_YINDEP: "Device can do scaling independent of X and Y"

This bit indicates that device fonts can be scaled separately

in the x and y directions.

TC_SA_DOUBLE: "Device can do doubled characters for scaling"

This bit indicates that the size of device fonts can be scaled

to twice their size.

TC_SA_INTEGER: "Device can do integer multiples for scaling"

This bit indicates that the size of device fonts can be scaled

by any integer multiple.

TC_SA_CONTIN: "Device can do any multiples for exact scaling"

This bit indicates that device fonts can be scaled by any

amount, however the x and y ratios are preserved.

TC_EA_ABLE: "Device can do double-weight characters"

This bit indicates that the device can embolden device fonts.

If this bit is not set for printer drivers, the graphics

design interface (GDI) will attempt to create bold device

fonts by overstriking them.

TC_IA_ABLE: "Device can do italicizing"

This bit indicates that the device driver can create italic

device fonts. If this bit is not set, GDI will simulate italic

when appropriate.

TC_UA_ABLE: "Device can do underlining"

This bit indicates that the device driver can underline device

fonts. If this bit is not set, GDI will create underlines for

device fonts.

TC_SO_ABLE: "Device can do strikeouts"

This bit indicates that the device driver can strike out

device fonts. If this bit is not set, GDI will create

strikeouts for device fonts.

TC_RA_ABLE: "Device can do raster fonts"

This bit indicates that the device supports raster fonts for

output. GDI enumerates the raster fonts available for this

device in the system in response to the EnumFonts function.

If this bit is not set, GDI-supplied raster fonts are not

enumerated.

Under Windows version 3.1, the TC_RA_ABLE bit also affects

TrueType fonts in the same way.

TC_VA_ABLE: "Device can do vector fonts"

This bit indicates that GDI enumerates the vector fonts

available for this device in response to the EnumFonts

function. Note that this bit is significant only for vector

(that is, plotter) devices. Raster device drivers will always

enumerate vector fonts because GDI can draw a vector font

using polylines.

TC_RESERVED: "Reserved"

Additional reference words: 3.00 3.10