DWRITE_MAKE_OPENTYPE_TAG macro (dwrite.h)

Creates an OpenType tag as a 32-bit integer, such that the first character in the tag is the lowest byte (least significant on little-endian architectures), which can be used to compare with tags in the font file. This macro is compatible with DWRITE_FONT_FEATURE_TAG.

Syntax

void DWRITE_MAKE_OPENTYPE_TAG(
   a,
   b,
   c,
   d
);

Parameters

a

Type: CHAR

The first character in the tag.

b

Type: CHAR

The second character in the tag.

c

Type: CHAR

The third character in the tag.

d

Type: CHAR

The fourth character in the tag.

Return value

None

Remarks

The OpenType language (such as "ROM ", "URD ", and "FAR " for Romanian, Urdu, and Persian) are determined from the locale, and the script ("latn" and "arab" for Latin and Arabic) is determined from the script analyzer. That's why these are not listed under OpenType tags; only the feature tags.

Examples

DWRITE_MAKE_OPENTYPE_TAG('c','c','m','p');
// Result: DWORD 0x706D6363

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps only]
Target Platform Windows
Header dwrite.h