Table of Contents

Struct Script

Namespace
Egami.Fonts.Unicode
Assembly
Egami.Fonts.dll

A Unicode script, such as Latin, Arabic or Devanagari, with its ISO 15924 code and the OpenType script tags fonts use for it.

public readonly record struct Script : IEquatable<Script>
Implements
Inherited Members

Examples

// Egami's own Unicode 17.0 tables: the same answer on every runtime and machine.
Script script = UnicodeData.GetScript('\u0915');                          // Devanagari
ReadOnlySpan<FontTag> tags = script.OpenTypeTags;                         // dev2, then deva
BidiClass bidi = UnicodeData.GetBidiClass('\u0627');                      // ArabicLetter
JoiningType joining = UnicodeData.GetJoiningType('\u0628');               // DualJoining
JoiningGroup group = UnicodeData.GetJoiningGroup('\u0628');               // Beh
VerticalOrientation upright = UnicodeData.GetVerticalOrientation('\u6F22');   // Upright
EastAsianWidth width = UnicodeData.GetEastAsianWidth('\u6F22');               // Wide
bool emoji = UnicodeData.IsEmojiPresentation(0x1F600);                    // true
UnicodeData.TryGetBidiMirroringGlyph('(', out int mirror);                // ')'
BidiPairedBracketType bracket = UnicodeData.GetBidiPairedBracketType('['); // Open

Remarks

The default value is Unknown. There is one static member per script of the Unicode version Egami's tables follow (UnicodeVersion).

Properties

Adlam

Gets the Adlam script (Adlm).

public static Script Adlam { get; }

Property Value

Script

Ahom

Gets the Ahom script (Ahom).

public static Script Ahom { get; }

Property Value

Script

AnatolianHieroglyphs

Gets the Anatolian Hieroglyphs script (Hluw).

public static Script AnatolianHieroglyphs { get; }

Property Value

Script

Arabic

Gets the Arabic script (Arab).

public static Script Arabic { get; }

Property Value

Script

Armenian

Gets the Armenian script (Armn).

public static Script Armenian { get; }

Property Value

Script

Avestan

Gets the Avestan script (Avst).

public static Script Avestan { get; }

Property Value

Script

Balinese

Gets the Balinese script (Bali).

public static Script Balinese { get; }

Property Value

Script

Bamum

Gets the Bamum script (Bamu).

public static Script Bamum { get; }

Property Value

Script

BassaVah

Gets the Bassa Vah script (Bass).

public static Script BassaVah { get; }

Property Value

Script

Batak

Gets the Batak script (Batk).

public static Script Batak { get; }

Property Value

Script

Bengali

Gets the Bengali script (Beng).

public static Script Bengali { get; }

Property Value

Script

BeriaErfe

Gets the Beria Erfe script (Berf).

public static Script BeriaErfe { get; }

Property Value

Script

Bhaiksuki

Gets the Bhaiksuki script (Bhks).

public static Script Bhaiksuki { get; }

Property Value

Script

Bopomofo

Gets the Bopomofo script (Bopo).

public static Script Bopomofo { get; }

Property Value

Script

Brahmi

Gets the Brahmi script (Brah).

public static Script Brahmi { get; }

Property Value

Script

Braille

Gets the Braille script (Brai).

public static Script Braille { get; }

Property Value

Script

Buginese

Gets the Buginese script (Bugi).

public static Script Buginese { get; }

Property Value

Script

Buhid

Gets the Buhid script (Buhd).

public static Script Buhid { get; }

Property Value

Script

CanadianAboriginal

Gets the Canadian Aboriginal script (Cans).

public static Script CanadianAboriginal { get; }

Property Value

Script

Carian

Gets the Carian script (Cari).

public static Script Carian { get; }

Property Value

Script

CaucasianAlbanian

Gets the Caucasian Albanian script (Aghb).

public static Script CaucasianAlbanian { get; }

Property Value

Script

Chakma

Gets the Chakma script (Cakm).

public static Script Chakma { get; }

Property Value

Script

Cham

Gets the Cham script (Cham).

public static Script Cham { get; }

Property Value

Script

Cherokee

Gets the Cherokee script (Cher).

public static Script Cherokee { get; }

Property Value

Script

Chorasmian

Gets the Chorasmian script (Chrs).

public static Script Chorasmian { get; }

Property Value

Script

Code

Gets the four-letter ISO 15924 code, such as "Latn", "Arab" or "Zyyy" for Common.

public string Code { get; }

Property Value

string

Common

Gets the Common script (Zyyy).

public static Script Common { get; }

Property Value

Script

Coptic

Gets the Coptic script (Copt).

public static Script Coptic { get; }

Property Value

Script

Cuneiform

Gets the Cuneiform script (Xsux).

public static Script Cuneiform { get; }

Property Value

Script

Cypriot

Gets the Cypriot script (Cprt).

public static Script Cypriot { get; }

Property Value

Script

CyproMinoan

Gets the Cypro Minoan script (Cpmn).

public static Script CyproMinoan { get; }

Property Value

Script

Cyrillic

Gets the Cyrillic script (Cyrl).

public static Script Cyrillic { get; }

Property Value

Script

Deseret

Gets the Deseret script (Dsrt).

public static Script Deseret { get; }

Property Value

Script

Devanagari

Gets the Devanagari script (Deva).

public static Script Devanagari { get; }

Property Value

Script

DivesAkuru

Gets the Dives Akuru script (Diak).

public static Script DivesAkuru { get; }

Property Value

Script

Dogra

Gets the Dogra script (Dogr).

public static Script Dogra { get; }

Property Value

Script

Duployan

Gets the Duployan script (Dupl).

public static Script Duployan { get; }

Property Value

Script

EgyptianHieroglyphs

Gets the Egyptian Hieroglyphs script (Egyp).

public static Script EgyptianHieroglyphs { get; }

Property Value

Script

Elbasan

Gets the Elbasan script (Elba).

public static Script Elbasan { get; }

Property Value

Script

Elymaic

Gets the Elymaic script (Elym).

public static Script Elymaic { get; }

Property Value

Script

Ethiopic

Gets the Ethiopic script (Ethi).

public static Script Ethiopic { get; }

Property Value

Script

Garay

Gets the Garay script (Gara).

public static Script Garay { get; }

Property Value

Script

Georgian

Gets the Georgian script (Geor).

public static Script Georgian { get; }

Property Value

Script

Glagolitic

Gets the Glagolitic script (Glag).

public static Script Glagolitic { get; }

Property Value

Script

Gothic

Gets the Gothic script (Goth).

public static Script Gothic { get; }

Property Value

Script

Grantha

Gets the Grantha script (Gran).

public static Script Grantha { get; }

Property Value

Script

Greek

Gets the Greek script (Grek).

public static Script Greek { get; }

Property Value

Script

Gujarati

Gets the Gujarati script (Gujr).

public static Script Gujarati { get; }

Property Value

Script

GunjalaGondi

Gets the Gunjala Gondi script (Gong).

public static Script GunjalaGondi { get; }

Property Value

Script

Gurmukhi

Gets the Gurmukhi script (Guru).

public static Script Gurmukhi { get; }

Property Value

Script

GurungKhema

Gets the Gurung Khema script (Gukh).

public static Script GurungKhema { get; }

Property Value

Script

Han

Gets the Han script (Hani).

public static Script Han { get; }

Property Value

Script

Hangul

Gets the Hangul script (Hang).

public static Script Hangul { get; }

Property Value

Script

HanifiRohingya

Gets the Hanifi Rohingya script (Rohg).

public static Script HanifiRohingya { get; }

Property Value

Script

Hanunoo

Gets the Hanunoo script (Hano).

public static Script Hanunoo { get; }

Property Value

Script

Hatran

Gets the Hatran script (Hatr).

public static Script Hatran { get; }

Property Value

Script

Hebrew

Gets the Hebrew script (Hebr).

public static Script Hebrew { get; }

Property Value

Script

Hiragana

Gets the Hiragana script (Hira).

public static Script Hiragana { get; }

Property Value

Script

ImperialAramaic

Gets the Imperial Aramaic script (Armi).

public static Script ImperialAramaic { get; }

Property Value

Script

Inherited

Gets the Inherited script (Zinh).

public static Script Inherited { get; }

Property Value

Script

InscriptionalPahlavi

Gets the Inscriptional Pahlavi script (Phli).

public static Script InscriptionalPahlavi { get; }

Property Value

Script

InscriptionalParthian

Gets the Inscriptional Parthian script (Prti).

public static Script InscriptionalParthian { get; }

Property Value

Script

IsShared

Gets whether the script is Common, Inherited or Unknown: shared characters that take the script around them.

public bool IsShared { get; }

Property Value

bool

Javanese

Gets the Javanese script (Java).

public static Script Javanese { get; }

Property Value

Script

Kaithi

Gets the Kaithi script (Kthi).

public static Script Kaithi { get; }

Property Value

Script

Kannada

Gets the Kannada script (Knda).

public static Script Kannada { get; }

Property Value

Script

Katakana

Gets the Katakana script (Kana).

public static Script Katakana { get; }

Property Value

Script

KatakanaOrHiragana

Gets the Katakana Or Hiragana script (Hrkt).

public static Script KatakanaOrHiragana { get; }

Property Value

Script

Kawi

Gets the Kawi script (Kawi).

public static Script Kawi { get; }

Property Value

Script

KayahLi

Gets the Kayah Li script (Kali).

public static Script KayahLi { get; }

Property Value

Script

Kharoshthi

Gets the Kharoshthi script (Khar).

public static Script Kharoshthi { get; }

Property Value

Script

KhitanSmallScript

Gets the Khitan Small Script script (Kits).

public static Script KhitanSmallScript { get; }

Property Value

Script

Khmer

Gets the Khmer script (Khmr).

public static Script Khmer { get; }

Property Value

Script

Khojki

Gets the Khojki script (Khoj).

public static Script Khojki { get; }

Property Value

Script

Khudawadi

Gets the Khudawadi script (Sind).

public static Script Khudawadi { get; }

Property Value

Script

KiratRai

Gets the Kirat Rai script (Krai).

public static Script KiratRai { get; }

Property Value

Script

Lao

Gets the Lao script (Laoo).

public static Script Lao { get; }

Property Value

Script

Latin

Gets the Latin script (Latn).

public static Script Latin { get; }

Property Value

Script

Lepcha

Gets the Lepcha script (Lepc).

public static Script Lepcha { get; }

Property Value

Script

Limbu

Gets the Limbu script (Limb).

public static Script Limbu { get; }

Property Value

Script

LinearA

Gets the Linear A script (Lina).

public static Script LinearA { get; }

Property Value

Script

LinearB

Gets the Linear B script (Linb).

public static Script LinearB { get; }

Property Value

Script

Lisu

Gets the Lisu script (Lisu).

public static Script Lisu { get; }

Property Value

Script

Lycian

Gets the Lycian script (Lyci).

public static Script Lycian { get; }

Property Value

Script

Lydian

Gets the Lydian script (Lydi).

public static Script Lydian { get; }

Property Value

Script

Mahajani

Gets the Mahajani script (Mahj).

public static Script Mahajani { get; }

Property Value

Script

Makasar

Gets the Makasar script (Maka).

public static Script Makasar { get; }

Property Value

Script

Malayalam

Gets the Malayalam script (Mlym).

public static Script Malayalam { get; }

Property Value

Script

Mandaic

Gets the Mandaic script (Mand).

public static Script Mandaic { get; }

Property Value

Script

Manichaean

Gets the Manichaean script (Mani).

public static Script Manichaean { get; }

Property Value

Script

Marchen

Gets the Marchen script (Marc).

public static Script Marchen { get; }

Property Value

Script

MasaramGondi

Gets the Masaram Gondi script (Gonm).

public static Script MasaramGondi { get; }

Property Value

Script

Medefaidrin

Gets the Medefaidrin script (Medf).

public static Script Medefaidrin { get; }

Property Value

Script

MeeteiMayek

Gets the Meetei Mayek script (Mtei).

public static Script MeeteiMayek { get; }

Property Value

Script

MendeKikakui

Gets the Mende Kikakui script (Mend).

public static Script MendeKikakui { get; }

Property Value

Script

MeroiticCursive

Gets the Meroitic Cursive script (Merc).

public static Script MeroiticCursive { get; }

Property Value

Script

MeroiticHieroglyphs

Gets the Meroitic Hieroglyphs script (Mero).

public static Script MeroiticHieroglyphs { get; }

Property Value

Script

Miao

Gets the Miao script (Plrd).

public static Script Miao { get; }

Property Value

Script

Modi

Gets the Modi script (Modi).

public static Script Modi { get; }

Property Value

Script

Mongolian

Gets the Mongolian script (Mong).

public static Script Mongolian { get; }

Property Value

Script

Mro

Gets the Mro script (Mroo).

public static Script Mro { get; }

Property Value

Script

Multani

Gets the Multani script (Mult).

public static Script Multani { get; }

Property Value

Script

Myanmar

Gets the Myanmar script (Mymr).

public static Script Myanmar { get; }

Property Value

Script

Nabataean

Gets the Nabataean script (Nbat).

public static Script Nabataean { get; }

Property Value

Script

NagMundari

Gets the Nag Mundari script (Nagm).

public static Script NagMundari { get; }

Property Value

Script

Name

Gets the Unicode name of the script, such as "Latin" or "Old_Italic".

public string Name { get; }

Property Value

string

Nandinagari

Gets the Nandinagari script (Nand).

public static Script Nandinagari { get; }

Property Value

Script

NewTaiLue

Gets the New Tai Lue script (Talu).

public static Script NewTaiLue { get; }

Property Value

Script

Newa

Gets the Newa script (Newa).

public static Script Newa { get; }

Property Value

Script

Nko

Gets the Nko script (Nkoo).

public static Script Nko { get; }

Property Value

Script

Nushu

Gets the Nushu script (Nshu).

public static Script Nushu { get; }

Property Value

Script

NyiakengPuachueHmong

Gets the Nyiakeng Puachue Hmong script (Hmnp).

public static Script NyiakengPuachueHmong { get; }

Property Value

Script

Ogham

Gets the Ogham script (Ogam).

public static Script Ogham { get; }

Property Value

Script

OlChiki

Gets the Ol Chiki script (Olck).

public static Script OlChiki { get; }

Property Value

Script

OlOnal

Gets the Ol Onal script (Onao).

public static Script OlOnal { get; }

Property Value

Script

OldHungarian

Gets the Old Hungarian script (Hung).

public static Script OldHungarian { get; }

Property Value

Script

OldItalic

Gets the Old Italic script (Ital).

public static Script OldItalic { get; }

Property Value

Script

OldNorthArabian

Gets the Old North Arabian script (Narb).

public static Script OldNorthArabian { get; }

Property Value

Script

OldPermic

Gets the Old Permic script (Perm).

public static Script OldPermic { get; }

Property Value

Script

OldPersian

Gets the Old Persian script (Xpeo).

public static Script OldPersian { get; }

Property Value

Script

OldSogdian

Gets the Old Sogdian script (Sogo).

public static Script OldSogdian { get; }

Property Value

Script

OldSouthArabian

Gets the Old South Arabian script (Sarb).

public static Script OldSouthArabian { get; }

Property Value

Script

OldTurkic

Gets the Old Turkic script (Orkh).

public static Script OldTurkic { get; }

Property Value

Script

OldUyghur

Gets the Old Uyghur script (Ougr).

public static Script OldUyghur { get; }

Property Value

Script

OpenTypeTags

Gets the OpenType script tags fonts use for the script, newest first: dev2 then deva for Devanagari, latn for Latin, and DFLT for Common, Inherited and Unknown.

public ReadOnlySpan<FontTag> OpenTypeTags { get; }

Property Value

ReadOnlySpan<FontTag>

Oriya

Gets the Oriya script (Orya).

public static Script Oriya { get; }

Property Value

Script

Osage

Gets the Osage script (Osge).

public static Script Osage { get; }

Property Value

Script

Osmanya

Gets the Osmanya script (Osma).

public static Script Osmanya { get; }

Property Value

Script

PahawhHmong

Gets the Pahawh Hmong script (Hmng).

public static Script PahawhHmong { get; }

Property Value

Script

Palmyrene

Gets the Palmyrene script (Palm).

public static Script Palmyrene { get; }

Property Value

Script

PauCinHau

Gets the Pau Cin Hau script (Pauc).

public static Script PauCinHau { get; }

Property Value

Script

PhagsPa

Gets the Phags Pa script (Phag).

public static Script PhagsPa { get; }

Property Value

Script

Phoenician

Gets the Phoenician script (Phnx).

public static Script Phoenician { get; }

Property Value

Script

PsalterPahlavi

Gets the Psalter Pahlavi script (Phlp).

public static Script PsalterPahlavi { get; }

Property Value

Script

Rejang

Gets the Rejang script (Rjng).

public static Script Rejang { get; }

Property Value

Script

Runic

Gets the Runic script (Runr).

public static Script Runic { get; }

Property Value

Script

Samaritan

Gets the Samaritan script (Samr).

public static Script Samaritan { get; }

Property Value

Script

Saurashtra

Gets the Saurashtra script (Saur).

public static Script Saurashtra { get; }

Property Value

Script

Sharada

Gets the Sharada script (Shrd).

public static Script Sharada { get; }

Property Value

Script

Shavian

Gets the Shavian script (Shaw).

public static Script Shavian { get; }

Property Value

Script

Siddham

Gets the Siddham script (Sidd).

public static Script Siddham { get; }

Property Value

Script

Sidetic

Gets the Sidetic script (Sidt).

public static Script Sidetic { get; }

Property Value

Script

SignWriting

Gets the SignWriting script (Sgnw).

public static Script SignWriting { get; }

Property Value

Script

Sinhala

Gets the Sinhala script (Sinh).

public static Script Sinhala { get; }

Property Value

Script

Sogdian

Gets the Sogdian script (Sogd).

public static Script Sogdian { get; }

Property Value

Script

SoraSompeng

Gets the Sora Sompeng script (Sora).

public static Script SoraSompeng { get; }

Property Value

Script

Soyombo

Gets the Soyombo script (Soyo).

public static Script Soyombo { get; }

Property Value

Script

Sundanese

Gets the Sundanese script (Sund).

public static Script Sundanese { get; }

Property Value

Script

Sunuwar

Gets the Sunuwar script (Sunu).

public static Script Sunuwar { get; }

Property Value

Script

SylotiNagri

Gets the Syloti Nagri script (Sylo).

public static Script SylotiNagri { get; }

Property Value

Script

Syriac

Gets the Syriac script (Syrc).

public static Script Syriac { get; }

Property Value

Script

Tagalog

Gets the Tagalog script (Tglg).

public static Script Tagalog { get; }

Property Value

Script

Tagbanwa

Gets the Tagbanwa script (Tagb).

public static Script Tagbanwa { get; }

Property Value

Script

TaiLe

Gets the Tai Le script (Tale).

public static Script TaiLe { get; }

Property Value

Script

TaiTham

Gets the Tai Tham script (Lana).

public static Script TaiTham { get; }

Property Value

Script

TaiViet

Gets the Tai Viet script (Tavt).

public static Script TaiViet { get; }

Property Value

Script

TaiYo

Gets the Tai Yo script (Tayo).

public static Script TaiYo { get; }

Property Value

Script

Takri

Gets the Takri script (Takr).

public static Script Takri { get; }

Property Value

Script

Tamil

Gets the Tamil script (Taml).

public static Script Tamil { get; }

Property Value

Script

Tangsa

Gets the Tangsa script (Tnsa).

public static Script Tangsa { get; }

Property Value

Script

Tangut

Gets the Tangut script (Tang).

public static Script Tangut { get; }

Property Value

Script

Telugu

Gets the Telugu script (Telu).

public static Script Telugu { get; }

Property Value

Script

Thaana

Gets the Thaana script (Thaa).

public static Script Thaana { get; }

Property Value

Script

Thai

Gets the Thai script (Thai).

public static Script Thai { get; }

Property Value

Script

Tibetan

Gets the Tibetan script (Tibt).

public static Script Tibetan { get; }

Property Value

Script

Tifinagh

Gets the Tifinagh script (Tfng).

public static Script Tifinagh { get; }

Property Value

Script

Tirhuta

Gets the Tirhuta script (Tirh).

public static Script Tirhuta { get; }

Property Value

Script

Todhri

Gets the Todhri script (Todr).

public static Script Todhri { get; }

Property Value

Script

TolongSiki

Gets the Tolong Siki script (Tols).

public static Script TolongSiki { get; }

Property Value

Script

Toto

Gets the Toto script (Toto).

public static Script Toto { get; }

Property Value

Script

TuluTigalari

Gets the Tulu Tigalari script (Tutg).

public static Script TuluTigalari { get; }

Property Value

Script

Ugaritic

Gets the Ugaritic script (Ugar).

public static Script Ugaritic { get; }

Property Value

Script

Unknown

Gets the Unknown script (Zzzz).

public static Script Unknown { get; }

Property Value

Script

Vai

Gets the Vai script (Vaii).

public static Script Vai { get; }

Property Value

Script

Vithkuqi

Gets the Vithkuqi script (Vith).

public static Script Vithkuqi { get; }

Property Value

Script

Wancho

Gets the Wancho script (Wcho).

public static Script Wancho { get; }

Property Value

Script

WarangCiti

Gets the Warang Citi script (Wara).

public static Script WarangCiti { get; }

Property Value

Script

Yezidi

Gets the Yezidi script (Yezi).

public static Script Yezidi { get; }

Property Value

Script

Yi

Gets the Yi script (Yiii).

public static Script Yi { get; }

Property Value

Script

ZanabazarSquare

Gets the Zanabazar Square script (Zanb).

public static Script ZanabazarSquare { get; }

Property Value

Script

Methods

ToString()

Returns the ISO 15924 code.

public override string ToString()

Returns

string

The code, such as "Latn".

TryFromCode(string, out Script)

Finds a script by its ISO 15924 code, such as "Arab"; case does not matter.

public static bool TryFromCode(string code, out Script script)

Parameters

code string

The four-letter code.

script Script

The script, or Unknown when no script has the code.

Returns

bool

true when a script has the code.

Exceptions

ArgumentNullException

code is null.