ExtTextOutOptions Enumeration

Specifies how to use the application-defined rectangle.

For ExtTextOut(IntPtr, Int32, Int32, ExtTextOutOptions, NativeRectangle, String, UInt32, Int32) function.

Definition

Namespace: DevCase.Win32.Enums
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[FlagsAttribute]
public enum ExtTextOutOptions

Remarks

Members

Opaque 2 The current background color should be used to fill the rectangle.
Clipped 4 The text will be clipped to the rectangle.
GlyphIndex 16 The text array refers to an array returned from GetCharacterPlacement function and should be parsed directly by GDI as no further language-specific processing is required.

Glyph indexing only applies to TrueType fonts, but the flag can be used for bitmap and vector fonts to indicate that no further language processing is necessary and GDI should process the string directly.

Note that all glyph indices are 16-bit values even though the string is assumed to be an array of 8-bit values for raster fonts.

For the Unicode version (ExtTextOutW), the glyph indices are saved to a metafile.

However, to display the correct characters the metafile must be played back using the same font.

For the ANSI version (ExtTextOutA), the glyph indices are not saved

RtlReading 128 Middle East language edition of Windows:

If this value is specified and a Hebrew or Arabic font is selected into the device context, the string is output using right-to-left reading order.

If this value is not specified, the string is output in left-to-right order.

The same effect can be achieved by setting the TA_RTLREADING value in SetTextAlign.

This value is preserved for backward compatibility.

NoRect 256 The record does not specify a bounding rectangle for the text output.
SmallChars 512 The codes for characters in an output text string are 8 bits, derived from the low bytes of Unicode UTF16-LE character codes, in which the high byte is assumed to be 0..
NumericsLocal 1,024 To display numbers, use digits appropriate to the locale.
NumericsLatin 2,048 To display numbers, use European digits.
IgnoreLanguage 4,096 Reserved for system use.

If an application sets this flag, it loses international scripting support and in some cases it may display no text at all.

PDY 8,192 When this is set, the array pointed to by lpDx contains pairs of values.

The first value of each pair is, as usual, the distance between origins of adjacent character cells, but the second value is the displacement along the vertical direction of the font.

ReverseIndexMap 65,536 This flag is reserved and SHOULD NOT be used.

See Also