OpenTypeScript Class

Gives the script tags of the OpenType Layout tables for a Unicode script: OpenType specification, "Script Tags".

public static class OpenTypeScript

Methods

NameDescription
FromIso15924(uint)Gets the Unicode script of an ISO 15924 code, as a big-endian tag (Latn is 0x4C61746E). The code of Hiragana and Katakana together (Hrkt) is Katakana, whose tag is the one of both; an unknown code is UnicodeScript.Unknown.
GetTags(UnicodeScript, Span<uint>)Gets the tags to look for in a script list, by order of preference: the tags of the script, then the default script, then the tags fonts use in its place.

FromIso15924(uint)

OpenTypeScript.cs

Gets the Unicode script of an ISO 15924 code, as a big-endian tag (Latn is 0x4C61746E). The code of Hiragana and Katakana together (Hrkt) is Katakana, whose tag is the one of both; an unknown code is UnicodeScript.Unknown.

public static UnicodeScript FromIso15924(uint code)

Parameters

code uint

Returns

UnicodeScript

GetTags(UnicodeScript, Span<uint>)

OpenTypeScript.cs

Gets the tags to look for in a script list, by order of preference: the tags of the script, then the default script, then the tags fonts use in its place.

public static int GetTags(UnicodeScript script, Span<uint> tags)

Parameters

script UnicodeScript
tags Span<uint>

Returns

int

Constants

NameDescription
DefaultThe tag 'DFLT' of the default script.
MaxTagCountThe largest number of tags OpenTypeScript.GetTags writes.

Default

The tag 'DFLT' of the default script.

public const uint Default = 1145457748U

MaxTagCount

The largest number of tags OpenTypeScript.GetTags writes.

public const int MaxTagCount = 6