Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Specifies how to apply number substitution on digits and related punctuation.
Syntax
typedef enum DWRITE_NUMBER_SUBSTITUTION_METHOD {
DWRITE_NUMBER_SUBSTITUTION_METHOD_FROM_CULTURE,
DWRITE_NUMBER_SUBSTITUTION_METHOD_CONTEXTUAL,
DWRITE_NUMBER_SUBSTITUTION_METHOD_NONE,
DWRITE_NUMBER_SUBSTITUTION_METHOD_NATIONAL,
DWRITE_NUMBER_SUBSTITUTION_METHOD_TRADITIONAL
} ;
Constants
DWRITE_NUMBER_SUBSTITUTION_METHOD_FROM_CULTURESpecifies that the substitution method should be determined based on the LOCALE_IDIGITSUBSTITUTION value of the specified text culture. |
DWRITE_NUMBER_SUBSTITUTION_METHOD_CONTEXTUALIf the culture is Arabic or Persian, specifies that the number shapes depend on the context. Either traditional or nominal number shapes are used, depending on the nearest preceding strong character or (if there is none) the reading direction of the paragraph. |
DWRITE_NUMBER_SUBSTITUTION_METHOD_NONESpecifies that code points 0x30-0x39 are always rendered as nominal numeral shapes (ones of the European number), that is, no substitution is performed. |
DWRITE_NUMBER_SUBSTITUTION_METHOD_NATIONALSpecifies that numbers are rendered using the national number shapes as specified by the LOCALE_SNATIVEDIGITS value of the specified text culture. |
DWRITE_NUMBER_SUBSTITUTION_METHOD_TRADITIONALSpecifies that numbers are rendered using the traditional shapes for the specified culture. For most cultures, this is the same as NativeNational. However, NativeNational results in Latin numbers for some Arabic cultures, whereasDWRITE_NUMBER_SUBSTITUTION_METHOD_TRADITIONAL results in arabic numbers for all Arabic cultures. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps] |
| Minimum supported server | Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps] |
| Header | dwrite.h |