opentype

package
v0.0.0-...-0804d05 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EncodingRecordSubtableFormatNumber0 : the Apple standard character to glyph index mapping table.
	EncodingRecordSubtableFormatNumber0 = EncodingRecordSubtableFormatNumber(0)
	// EncodingRecordSubtableFormatNumber2 : This subtable is useful for the national character code standards used for Japanese, Chinese, and Korean characters.
	EncodingRecordSubtableFormatNumber2 = EncodingRecordSubtableFormatNumber(2)
	// EncodingRecordSubtableFormatNumber4 : the Microsoft standard character-to-glyph-index mapping table for fonts that support Unicode BMP characters.
	EncodingRecordSubtableFormatNumber4 = EncodingRecordSubtableFormatNumber(4)
	// EncodingRecordSubtableFormatNumber6 : Trimmed table mapping.
	EncodingRecordSubtableFormatNumber6 = EncodingRecordSubtableFormatNumber(6)
	// EncodingRecordSubtableFormatNumber12 : the Microsoft standard character-to-glyph-index mapping table for fonts supporting Unicode supplementary-plane characters (U+10000 to U+10FFFF).
	EncodingRecordSubtableFormatNumber12 = EncodingRecordSubtableFormatNumber(12)
)
View Source
const (
	// PlatformIDUnicode : Unicode
	PlatformIDUnicode = PlatformID(0)
	// PlatformIDMacintosh : Macintosh
	PlatformIDMacintosh = PlatformID(1)
	// PlatformIDISO : ISO(deperecated)
	PlatformIDISO = PlatformID(2)
	// PlatformIDWindows : Windows
	PlatformIDWindows = PlatformID(3)
	// PlatformIDCustom : Custom
	PlatformIDCustom = PlatformID(4)
)
View Source
const (
	// EncodingIDUnicode10 : Unicode 1.0 semantics
	EncodingIDUnicode10 = EncodingID(0)
	// EncodingIDUnicode11 : Unicode 1.1 semantics
	EncodingIDUnicode11 = EncodingID(1)
	// EncodingIDUnicodeUCS : ISO/IEC 10646 semantics
	EncodingIDUnicodeUCS = EncodingID(2)
	// EncodingIDUnicode2BMP : Unicode 2.0 and onwards semantics, Unicode BMP only (cmap subtable formats 0, 4, 6).
	EncodingIDUnicode2BMP = EncodingID(3)
	// EncodingIDUnicode2Full : Unicode 2.0 and onwards semantics, Unicode full repertoire (cmap subtable formats 0, 4, 6, 10, 12).
	EncodingIDUnicode2Full = EncodingID(4)
	// EncodingIDUnicodeVariation : Unicode Variation Sequences (cmap subtable format 14).
	EncodingIDUnicodeVariation = EncodingID(5)
	// EncodingIDUnicodeFull : Unicode full repertoire (cmap subtable formats 0, 4, 6, 10, 12, 13).
	EncodingIDUnicodeFull = EncodingID(6)
	// EncodingIDWindowsSymbol : Windows Symbol
	EncodingIDWindowsSymbol = EncodingID(0)
	// EncodingIDWindowsUnicodeBMP : Windows Unicode BMP (UCS-2)
	EncodingIDWindowsUnicodeBMP = EncodingID(1)
	// EncodingIDWindowsSJIS : Windows ShiftJIS
	EncodingIDWindowsSJIS = EncodingID(2)
	// EncodingIDWindowsPRC : Windows PRC
	EncodingIDWindowsPRC = EncodingID(3)
	// EncodingIDWindowsBig5 : Windows Big5
	EncodingIDWindowsBig5 = EncodingID(4)
	// EncodingIDWindowsWansung : Windows Wansung
	EncodingIDWindowsWansung = EncodingID(5)
	// EncodingIDWindowsJohab : Windows Johab
	EncodingIDWindowsJohab = EncodingID(6)
	// EncodingIDWindowsUnicodeUCS4 : Windows Unicode UCS-4
	EncodingIDWindowsUnicodeUCS4 = EncodingID(10)
	// EncodingIDMacintoshRoman : Macintosh Roman
	EncodingIDMacintoshRoman = EncodingID(0)
	// EncodingIDMacintoshJapanese : Macintosh Japanese
	EncodingIDMacintoshJapanese = EncodingID(1)
	// EncodingIDMacintoshChineseTraditional : Macintosh Chinese (Traditional)
	EncodingIDMacintoshChineseTraditional = EncodingID(2)
	// EncodingIDMacintoshKorean : Macintosh Korean
	EncodingIDMacintoshKorean = EncodingID(3)
	// EncodingIDMacintoshArabic : Macintosh Arabic
	EncodingIDMacintoshArabic = EncodingID(4)
	// EncodingIDMacintoshHebrew : Macintosh Hebrew
	EncodingIDMacintoshHebrew = EncodingID(5)
	// EncodingIDMacintoshGreek : Macintosh Greek
	EncodingIDMacintoshGreek = EncodingID(6)
	// EncodingIDMacintoshRussian : Macintosh Russian
	EncodingIDMacintoshRussian = EncodingID(7)
	// EncodingIDMacintoshRSymbol : Macintosh RSymbol
	EncodingIDMacintoshRSymbol = EncodingID(8)
	// EncodingIDMacintoshDevanagari : Macintosh Devanagari
	EncodingIDMacintoshDevanagari = EncodingID(9)
	// EncodingIDMacintoshGurmukhi : Macintosh Gurmukhi
	EncodingIDMacintoshGurmukhi = EncodingID(10)
	// EncodingIDMacintoshGujarati : Macintosh Gujarati
	EncodingIDMacintoshGujarati = EncodingID(11)
	// EncodingIDMacintoshOriya : Macintosh Oriya
	EncodingIDMacintoshOriya = EncodingID(12)
	// EncodingIDMacintoshBengali : Macintosh Bengali
	EncodingIDMacintoshBengali = EncodingID(13)
	// EncodingIDMacintoshTamil : Macintosh Tamil
	EncodingIDMacintoshTamil = EncodingID(14)
	// EncodingIDMacintoshTelugu : Macintosh Telugu
	EncodingIDMacintoshTelugu = EncodingID(15)
	// EncodingIDMacintoshKannada : Macintosh Kannada
	EncodingIDMacintoshKannada = EncodingID(16)
	// EncodingIDMacintoshMalayalam : Macintosh Malayalam
	EncodingIDMacintoshMalayalam = EncodingID(17)
	// EncodingIDMacintoshSinhalese : Macintosh Sinhalese
	EncodingIDMacintoshSinhalese = EncodingID(18)
	// EncodingIDMacintoshBurmese : Macintosh Burmese
	EncodingIDMacintoshBurmese = EncodingID(19)
	// EncodingIDMacintoshKhmer : Macintosh Khmer
	EncodingIDMacintoshKhmer = EncodingID(20)
	// EncodingIDMacintoshThai : Macintosh Thai
	EncodingIDMacintoshThai = EncodingID(21)
	// EncodingIDMacintoshLaotian : Macintosh Laotian
	EncodingIDMacintoshLaotian = EncodingID(22)
	// EncodingIDMacintoshGeorgian : Macintosh Georgian
	EncodingIDMacintoshGeorgian = EncodingID(23)
	// EncodingIDMacintoshArmenian : Macintosh Armenian
	EncodingIDMacintoshArmenian = EncodingID(24)
	// EncodingIDMacintoshChineseSimplified : Macintosh Chinese (Simplified)
	EncodingIDMacintoshChineseSimplified = EncodingID(25)
	// EncodingIDMacintoshTibetan : Macintosh Tibetan
	EncodingIDMacintoshTibetan = EncodingID(26)
	// EncodingIDMacintoshMongolian : Macintosh Mongolian
	EncodingIDMacintoshMongolian = EncodingID(27)
	// EncodingIDMacintoshGeez : Macintosh Geez
	EncodingIDMacintoshGeez = EncodingID(28)
	// EncodingIDMacintoshSlavic : Macintosh Slavic
	EncodingIDMacintoshSlavic = EncodingID(29)
	// EncodingIDMacintoshVietnamese : Macintosh Vietnamese
	EncodingIDMacintoshVietnamese = EncodingID(30)
	// EncodingIDMacintoshSindhi : Macintosh Sindhi
	EncodingIDMacintoshSindhi = EncodingID(31)
	// EncodingIDMacintoshUninterpreted : Macintosh Uninterpreted
	EncodingIDMacintoshUninterpreted = EncodingID(32)
)
View Source
const (
	// LanguageIDWindowsAfrikaansSouthAfrica : Windows Afrikaans-South Africa
	LanguageIDWindowsAfrikaansSouthAfrica = LanguageID(0x0436)
	// LanguageIDWindowsAlbanianAlbania : Windows Albanian-Albania
	LanguageIDWindowsAlbanianAlbania = LanguageID(0x041C)
	// LanguageIDWindowsAlsatianFrance : Windows Alsatian-France
	LanguageIDWindowsAlsatianFrance = LanguageID(0x0484)
	// LanguageIDWindowsAmharicEthiopia : Windows Amharic-Ethiopia
	LanguageIDWindowsAmharicEthiopia = LanguageID(0x045E)
	// LanguageIDWindowsArabicAlgeria : Windows Arabic-Algeria
	LanguageIDWindowsArabicAlgeria = LanguageID(0x1401)
	// LanguageIDWindowsArabicBahrain : Windows Arabic-Bahrain
	LanguageIDWindowsArabicBahrain = LanguageID(0x3C01)
	// LanguageIDWindowsArabicEgypt : Windows Arabic-Egypt
	LanguageIDWindowsArabicEgypt = LanguageID(0x0C01)
	// LanguageIDWindowsArabicIraq : Windows Arabic-Iraq
	LanguageIDWindowsArabicIraq = LanguageID(0x0801)
	// LanguageIDWindowsArabicJordan : Windows Arabic-Jordan
	LanguageIDWindowsArabicJordan = LanguageID(0x2C01)
	// LanguageIDWindowsArabicKuwait : Windows Arabic-Kuwait
	LanguageIDWindowsArabicKuwait = LanguageID(0x3401)
	// LanguageIDWindowsArabicLebanon : Windows Arabic-Lebanon
	LanguageIDWindowsArabicLebanon = LanguageID(0x3001)
	// LanguageIDWindowsArabicLibya : Windows Arabic-Libya
	LanguageIDWindowsArabicLibya = LanguageID(0x1001)
	// LanguageIDWindowsArabicMorocco : Windows Arabic-Morocco
	LanguageIDWindowsArabicMorocco = LanguageID(0x1801)
	// LanguageIDWindowsArabicOman : Windows Arabic-Oman
	LanguageIDWindowsArabicOman = LanguageID(0x2001)
	// LanguageIDWindowsArabicQatar : Windows Arabic-Qatar
	LanguageIDWindowsArabicQatar = LanguageID(0x4001)
	// LanguageIDWindowsArabicSaudiArabia : Windows Arabic-Saudi Arabia
	LanguageIDWindowsArabicSaudiArabia = LanguageID(0x0401)
	// LanguageIDWindowsArabicSyria : Windows Arabic-Syria
	LanguageIDWindowsArabicSyria = LanguageID(0x2801)
	// LanguageIDWindowsArabicTunisia : Windows Arabic-Tunisia
	LanguageIDWindowsArabicTunisia = LanguageID(0x1C01)
	// LanguageIDWindowsArabicUAE : Windows Arabic-U.A.E.
	LanguageIDWindowsArabicUAE = LanguageID(0x3801)
	// LanguageIDWindowsArabicYemen : Windows Arabic-Yemen
	LanguageIDWindowsArabicYemen = LanguageID(0x2401)
	// LanguageIDWindowsArmenianArmenia : Windows Armenian-Armenia
	LanguageIDWindowsArmenianArmenia = LanguageID(0x042B)
	// LanguageIDWindowsAssameseIndia : Windows Assamese-India
	LanguageIDWindowsAssameseIndia = LanguageID(0x044D)
	// LanguageIDWindowsAzeriCyrillicAzerbaijan : Windows Azeri (Cyrillic)-Azerbaijan
	LanguageIDWindowsAzeriCyrillicAzerbaijan = LanguageID(0x082C)
	// LanguageIDWindowsAzeriLatinAzerbaijan : Windows Azeri (Latin)-Azerbaijan
	LanguageIDWindowsAzeriLatinAzerbaijan = LanguageID(0x042C)
	// LanguageIDWindowsBashkirRussia : Windows Bashkir-Russia
	LanguageIDWindowsBashkirRussia = LanguageID(0x046D)
	// LanguageIDWindowsBasqueBasque : Windows Basque-Basque
	LanguageIDWindowsBasqueBasque = LanguageID(0x042D)
	// LanguageIDWindowsBelarusianBelarus : Windows Belarusian-Belarus
	LanguageIDWindowsBelarusianBelarus = LanguageID(0x0423)
	// LanguageIDWindowsBengaliBangladesh : Windows Bengali-Bangladesh
	LanguageIDWindowsBengaliBangladesh = LanguageID(0x0845)
	// LanguageIDWindowsBengaliIndia : Windows Bengali-India
	LanguageIDWindowsBengaliIndia = LanguageID(0x0445)
	// LanguageIDWindowsBosnianCyrillicBosniaandHerzegovina : Windows Bosnian (Cyrillic)-Bosnia and Herzegovina
	LanguageIDWindowsBosnianCyrillicBosniaandHerzegovina = LanguageID(0x201A)
	// LanguageIDWindowsBosnianLatinBosniaandHerzegovina : Windows Bosnian (Latin)-Bosnia and Herzegovina
	LanguageIDWindowsBosnianLatinBosniaandHerzegovina = LanguageID(0x141A)
	// LanguageIDWindowsBretonFrance : Windows Breton-France
	LanguageIDWindowsBretonFrance = LanguageID(0x047E)
	// LanguageIDWindowsBulgarianBulgaria : Windows Bulgarian-Bulgaria
	LanguageIDWindowsBulgarianBulgaria = LanguageID(0x0402)
	// LanguageIDWindowsCatalanCatalan : Windows Catalan-Catalan
	LanguageIDWindowsCatalanCatalan = LanguageID(0x0403)
	// LanguageIDWindowsChineseHongKongSAR : Windows Chinese-Hong Kong S.A.R.
	LanguageIDWindowsChineseHongKongSAR = LanguageID(0x0C04)
	// LanguageIDWindowsChineseMacaoSAR : Windows Chinese-Macao S.A.R.
	LanguageIDWindowsChineseMacaoSAR = LanguageID(0x1404)
	// LanguageIDWindowsChinesePeoplesRepublicofChina : Windows Chinese-People's Republic of China
	LanguageIDWindowsChinesePeoplesRepublicofChina = LanguageID(0x0804)
	// LanguageIDWindowsChineseSingapore : Windows Chinese-Singapore
	LanguageIDWindowsChineseSingapore = LanguageID(0x1004)
	// LanguageIDWindowsChineseTaiwan : Windows Chinese-Taiwan
	LanguageIDWindowsChineseTaiwan = LanguageID(0x0404)
	// LanguageIDWindowsCorsicanFrance : Windows Corsican-France
	LanguageIDWindowsCorsicanFrance = LanguageID(0x0483)
	// LanguageIDWindowsCroatianCroatia : Windows Croatian-Croatia
	LanguageIDWindowsCroatianCroatia = LanguageID(0x041A)
	// LanguageIDWindowsCroatianLatinBosniaandHerzegovina : Windows Croatian (Latin)-Bosnia and Herzegovina
	LanguageIDWindowsCroatianLatinBosniaandHerzegovina = LanguageID(0x101A)
	// LanguageIDWindowsCzechCzechRepublic : Windows Czech-Czech Republic
	LanguageIDWindowsCzechCzechRepublic = LanguageID(0x0405)
	// LanguageIDWindowsDanishDenmark : Windows Danish-Denmark
	LanguageIDWindowsDanishDenmark = LanguageID(0x0406)
	// LanguageIDWindowsDariAfghanistan : Windows Dari-Afghanistan
	LanguageIDWindowsDariAfghanistan = LanguageID(0x048C)
	// LanguageIDWindowsDivehiMaldives : Windows Divehi-Maldives
	LanguageIDWindowsDivehiMaldives = LanguageID(0x0465)
	// LanguageIDWindowsDutchBelgium : Windows Dutch-Belgium
	LanguageIDWindowsDutchBelgium = LanguageID(0x0813)
	// LanguageIDWindowsDutchNetherlands : Windows Dutch-Netherlands
	LanguageIDWindowsDutchNetherlands = LanguageID(0x0413)
	// LanguageIDWindowsEnglishAustralia : Windows English-Australia
	LanguageIDWindowsEnglishAustralia = LanguageID(0x0C09)
	// LanguageIDWindowsEnglishBelize : Windows English-Belize
	LanguageIDWindowsEnglishBelize = LanguageID(0x2809)
	// LanguageIDWindowsEnglishCanada : Windows English-Canada
	LanguageIDWindowsEnglishCanada = LanguageID(0x1009)
	// LanguageIDWindowsEnglishCaribbean : Windows English-Caribbean
	LanguageIDWindowsEnglishCaribbean = LanguageID(0x2409)
	// LanguageIDWindowsEnglishIndia : Windows English-India
	LanguageIDWindowsEnglishIndia = LanguageID(0x4009)
	// LanguageIDWindowsEnglishIreland : Windows English-Ireland
	LanguageIDWindowsEnglishIreland = LanguageID(0x1809)
	// LanguageIDWindowsEnglishJamaica : Windows English-Jamaica
	LanguageIDWindowsEnglishJamaica = LanguageID(0x2009)
	// LanguageIDWindowsEnglishMalaysia : Windows English-Malaysia
	LanguageIDWindowsEnglishMalaysia = LanguageID(0x4409)
	// LanguageIDWindowsEnglishNewZealand : Windows English-New Zealand
	LanguageIDWindowsEnglishNewZealand = LanguageID(0x1409)
	// LanguageIDWindowsEnglishRepublicofthePhilippines : Windows English-Republic of the Philippines
	LanguageIDWindowsEnglishRepublicofthePhilippines = LanguageID(0x3409)
	// LanguageIDWindowsEnglishSingapore : Windows English-Singapore
	LanguageIDWindowsEnglishSingapore = LanguageID(0x4809)
	// LanguageIDWindowsEnglishSouthAfrica : Windows English-South Africa
	LanguageIDWindowsEnglishSouthAfrica = LanguageID(0x1C09)
	// LanguageIDWindowsEnglishTrinidadandTobago : Windows English-Trinidad and Tobago
	LanguageIDWindowsEnglishTrinidadandTobago = LanguageID(0x2C09)
	// LanguageIDWindowsEnglishUnitedKingdom : Windows English-United Kingdom
	LanguageIDWindowsEnglishUnitedKingdom = LanguageID(0x0809)
	// LanguageIDWindowsEnglishUnitedStates : Windows English-United States
	LanguageIDWindowsEnglishUnitedStates = LanguageID(0x0409)
	// LanguageIDWindowsEnglishZimbabwe : Windows English-Zimbabwe
	LanguageIDWindowsEnglishZimbabwe = LanguageID(0x3009)
	// LanguageIDWindowsEstonianEstonia : Windows Estonian-Estonia
	LanguageIDWindowsEstonianEstonia = LanguageID(0x0425)
	// LanguageIDWindowsFaroeseFaroeIslands : Windows Faroese-Faroe Islands
	LanguageIDWindowsFaroeseFaroeIslands = LanguageID(0x0438)
	// LanguageIDWindowsFilipinoPhilippines : Windows Filipino-Philippines
	LanguageIDWindowsFilipinoPhilippines = LanguageID(0x0464)
	// LanguageIDWindowsFinnishFinland : Windows Finnish-Finland
	LanguageIDWindowsFinnishFinland = LanguageID(0x040B)
	// LanguageIDWindowsFrenchBelgium : Windows French-Belgium
	LanguageIDWindowsFrenchBelgium = LanguageID(0x080C)
	// LanguageIDWindowsFrenchCanada : Windows French-Canada
	LanguageIDWindowsFrenchCanada = LanguageID(0x0C0C)
	// LanguageIDWindowsFrenchFrance : Windows French-France
	LanguageIDWindowsFrenchFrance = LanguageID(0x040C)
	// LanguageIDWindowsFrenchLuxembourg : Windows French-Luxembourg
	LanguageIDWindowsFrenchLuxembourg = LanguageID(0x140c)
	// LanguageIDWindowsFrenchPrincipalityofMonaco : Windows French-Principality of Monaco
	LanguageIDWindowsFrenchPrincipalityofMonaco = LanguageID(0x180C)
	// LanguageIDWindowsFrenchSwitzerland : Windows French-Switzerland
	LanguageIDWindowsFrenchSwitzerland = LanguageID(0x100C)
	// LanguageIDWindowsFrisianNetherlands : Windows Frisian-Netherlands
	LanguageIDWindowsFrisianNetherlands = LanguageID(0x0462)
	// LanguageIDWindowsGalicianGalician : Windows Galician-Galician
	LanguageIDWindowsGalicianGalician = LanguageID(0x0456)
	// LanguageIDWindowsGeorgianGeorgia : Windows Georgian-Georgia
	LanguageIDWindowsGeorgianGeorgia = LanguageID(0x0437)
	// LanguageIDWindowsGermanAustria : Windows German-Austria
	LanguageIDWindowsGermanAustria = LanguageID(0x0C07)
	// LanguageIDWindowsGermanGermany : Windows German-Germany
	LanguageIDWindowsGermanGermany = LanguageID(0x0407)
	// LanguageIDWindowsGermanLiechtenstein : Windows German-Liechtenstein
	LanguageIDWindowsGermanLiechtenstein = LanguageID(0x1407)
	// LanguageIDWindowsGermanLuxembourg : Windows German-Luxembourg
	LanguageIDWindowsGermanLuxembourg = LanguageID(0x1007)
	// LanguageIDWindowsGermanSwitzerland : Windows German-Switzerland
	LanguageIDWindowsGermanSwitzerland = LanguageID(0x0807)
	// LanguageIDWindowsGreekGreece : Windows Greek-Greece
	LanguageIDWindowsGreekGreece = LanguageID(0x0408)
	// LanguageIDWindowsGreenlandicGreenland : Windows Greenlandic-Greenland
	LanguageIDWindowsGreenlandicGreenland = LanguageID(0x046F)
	// LanguageIDWindowsGujaratiIndia : Windows Gujarati-India
	LanguageIDWindowsGujaratiIndia = LanguageID(0x0447)
	// LanguageIDWindowsHausaLatinNigeria : Windows Hausa (Latin)-Nigeria
	LanguageIDWindowsHausaLatinNigeria = LanguageID(0x0468)
	// LanguageIDWindowsHebrewIsrael : Windows Hebrew-Israel
	LanguageIDWindowsHebrewIsrael = LanguageID(0x040D)
	// LanguageIDWindowsHindiIndia : Windows Hindi-India
	LanguageIDWindowsHindiIndia = LanguageID(0x0439)
	// LanguageIDWindowsHungarianHungary : Windows Hungarian-Hungary
	LanguageIDWindowsHungarianHungary = LanguageID(0x040E)
	// LanguageIDWindowsIcelandicIceland : Windows Icelandic-Iceland
	LanguageIDWindowsIcelandicIceland = LanguageID(0x040F)
	// LanguageIDWindowsIgboNigeria : Windows Igbo-Nigeria
	LanguageIDWindowsIgboNigeria = LanguageID(0x0470)
	// LanguageIDWindowsIndonesianIndonesia : Windows Indonesian-Indonesia
	LanguageIDWindowsIndonesianIndonesia = LanguageID(0x0421)
	// LanguageIDWindowsInuktitutCanada : Windows Inuktitut-Canada
	LanguageIDWindowsInuktitutCanada = LanguageID(0x045D)
	// LanguageIDWindowsInuktitutLatinCanada : Windows Inuktitut (Latin)-Canada
	LanguageIDWindowsInuktitutLatinCanada = LanguageID(0x085D)
	// LanguageIDWindowsIrishIreland : Windows Irish-Ireland
	LanguageIDWindowsIrishIreland = LanguageID(0x083C)
	// LanguageIDWindowsisiXhosaSouthAfrica : Windows isiXhosa-South Africa
	LanguageIDWindowsisiXhosaSouthAfrica = LanguageID(0x0434)
	// LanguageIDWindowsisiZuluSouthAfrica : Windows isiZulu-South Africa
	LanguageIDWindowsisiZuluSouthAfrica = LanguageID(0x0435)
	// LanguageIDWindowsItalianItaly : Windows Italian-Italy
	LanguageIDWindowsItalianItaly = LanguageID(0x0410)
	// LanguageIDWindowsItalianSwitzerland : Windows Italian-Switzerland
	LanguageIDWindowsItalianSwitzerland = LanguageID(0x0810)
	// LanguageIDWindowsJapaneseJapan : Windows Japanese-Japan
	LanguageIDWindowsJapaneseJapan = LanguageID(0x0411)
	// LanguageIDWindowsKannadaIndia : Windows Kannada-India
	LanguageIDWindowsKannadaIndia = LanguageID(0x044B)
	// LanguageIDWindowsKazakhKazakhstan : Windows Kazakh-Kazakhstan
	LanguageIDWindowsKazakhKazakhstan = LanguageID(0x043F)
	// LanguageIDWindowsKhmerCambodia : Windows Khmer-Cambodia
	LanguageIDWindowsKhmerCambodia = LanguageID(0x0453)
	// LanguageIDWindowsKicheGuatemala : Windows K'iche-Guatemala
	LanguageIDWindowsKicheGuatemala = LanguageID(0x0486)
	// LanguageIDWindowsKinyarwandaRwanda : Windows Kinyarwanda-Rwanda
	LanguageIDWindowsKinyarwandaRwanda = LanguageID(0x0487)
	// LanguageIDWindowsKiswahiliKenya : Windows Kiswahili-Kenya
	LanguageIDWindowsKiswahiliKenya = LanguageID(0x0441)
	// LanguageIDWindowsKonkaniIndia : Windows Konkani-India
	LanguageIDWindowsKonkaniIndia = LanguageID(0x0457)
	// LanguageIDWindowsKoreanKorea : Windows Korean-Korea
	LanguageIDWindowsKoreanKorea = LanguageID(0x0412)
	// LanguageIDWindowsKyrgyzKyrgyzstan : Windows Kyrgyz-Kyrgyzstan
	LanguageIDWindowsKyrgyzKyrgyzstan = LanguageID(0x0440)
	// LanguageIDWindowsLaoLaoPDR : Windows Lao-Lao P.D.R.
	LanguageIDWindowsLaoLaoPDR = LanguageID(0x0454)
	// LanguageIDWindowsLatvianLatvia : Windows Latvian-Latvia
	LanguageIDWindowsLatvianLatvia = LanguageID(0x0426)
	// LanguageIDWindowsLithuanianLithuania : Windows Lithuanian-Lithuania
	LanguageIDWindowsLithuanianLithuania = LanguageID(0x0427)
	// LanguageIDWindowsLowerSorbianGermany : Windows Lower Sorbian-Germany
	LanguageIDWindowsLowerSorbianGermany = LanguageID(0x082E)
	// LanguageIDWindowsLuxembourgishLuxembourg : Windows Luxembourgish-Luxembourg
	LanguageIDWindowsLuxembourgishLuxembourg = LanguageID(0x046E)
	// LanguageIDWindowsMacedonianFYROMFormerYugoslavRepublicofMacedonia : Windows Macedonian (FYROM)-Former Yugoslav Republic of Macedonia
	LanguageIDWindowsMacedonianFYROMFormerYugoslavRepublicofMacedonia = LanguageID(0x042F)
	// LanguageIDWindowsMalayBruneiDarussalam : Windows Malay-Brunei Darussalam
	LanguageIDWindowsMalayBruneiDarussalam = LanguageID(0x083E)
	// LanguageIDWindowsMalayMalaysia : Windows Malay-Malaysia
	LanguageIDWindowsMalayMalaysia = LanguageID(0x043E)
	// LanguageIDWindowsMalayalamIndia : Windows Malayalam-India
	LanguageIDWindowsMalayalamIndia = LanguageID(0x044C)
	// LanguageIDWindowsMalteseMalta : Windows Maltese-Malta
	LanguageIDWindowsMalteseMalta = LanguageID(0x043A)
	// LanguageIDWindowsMaoriNewZealand : Windows Maori-New Zealand
	LanguageIDWindowsMaoriNewZealand = LanguageID(0x0481)
	// LanguageIDWindowsMapudungunChile : Windows Mapudungun-Chile
	LanguageIDWindowsMapudungunChile = LanguageID(0x047A)
	// LanguageIDWindowsMarathiIndia : Windows Marathi-India
	LanguageIDWindowsMarathiIndia = LanguageID(0x044E)
	// LanguageIDWindowsMohawkMohawk : Windows Mohawk-Mohawk
	LanguageIDWindowsMohawkMohawk = LanguageID(0x047C)
	// LanguageIDWindowsMongolianCyrillicMongolia : Windows Mongolian (Cyrillic)-Mongolia
	LanguageIDWindowsMongolianCyrillicMongolia = LanguageID(0x0450)
	// LanguageIDWindowsMongolianTraditionalPeoplesRepublicofChina : Windows Mongolian (Traditional)-People's Republic of China
	LanguageIDWindowsMongolianTraditionalPeoplesRepublicofChina = LanguageID(0x0850)
	// LanguageIDWindowsNepaliNepal : Windows Nepali-Nepal
	LanguageIDWindowsNepaliNepal = LanguageID(0x0461)
	// LanguageIDWindowsNorwegianBokmalNorway : Windows Norwegian (Bokmal)-Norway
	LanguageIDWindowsNorwegianBokmalNorway = LanguageID(0x0414)
	// LanguageIDWindowsNorwegianNynorskNorway : Windows Norwegian (Nynorsk)-Norway
	LanguageIDWindowsNorwegianNynorskNorway = LanguageID(0x0814)
	// LanguageIDWindowsOccitanFrance : Windows Occitan-France
	LanguageIDWindowsOccitanFrance = LanguageID(0x0482)
	// LanguageIDWindowsOdiaformerlyOriyaIndia : Windows Odia (formerly Oriya)-India
	LanguageIDWindowsOdiaformerlyOriyaIndia = LanguageID(0x0448)
	// LanguageIDWindowsPashtoAfghanistan : Windows Pashto-Afghanistan
	LanguageIDWindowsPashtoAfghanistan = LanguageID(0x0463)
	// LanguageIDWindowsPolishPoland : Windows Polish-Poland
	LanguageIDWindowsPolishPoland = LanguageID(0x0415)
	// LanguageIDWindowsPortugueseBrazil : Windows Portuguese-Brazil
	LanguageIDWindowsPortugueseBrazil = LanguageID(0x0416)
	// LanguageIDWindowsPortuguesePortugal : Windows Portuguese-Portugal
	LanguageIDWindowsPortuguesePortugal = LanguageID(0x0816)
	// LanguageIDWindowsPunjabiIndia : Windows Punjabi-India
	LanguageIDWindowsPunjabiIndia = LanguageID(0x0446)
	// LanguageIDWindowsQuechuaBolivia : Windows Quechua-Bolivia
	LanguageIDWindowsQuechuaBolivia = LanguageID(0x046B)
	// LanguageIDWindowsQuechuaEcuador : Windows Quechua-Ecuador
	LanguageIDWindowsQuechuaEcuador = LanguageID(0x086B)
	// LanguageIDWindowsQuechuaPeru : Windows Quechua-Peru
	LanguageIDWindowsQuechuaPeru = LanguageID(0x0C6B)
	// LanguageIDWindowsRomanianRomania : Windows Romanian-Romania
	LanguageIDWindowsRomanianRomania = LanguageID(0x0418)
	// LanguageIDWindowsRomanshSwitzerland : Windows Romansh-Switzerland
	LanguageIDWindowsRomanshSwitzerland = LanguageID(0x0417)
	// LanguageIDWindowsRussianRussia : Windows Russian-Russia
	LanguageIDWindowsRussianRussia = LanguageID(0x0419)
	// LanguageIDWindowsSamiInariFinland : Windows Sami (Inari)-Finland
	LanguageIDWindowsSamiInariFinland = LanguageID(0x243B)
	// LanguageIDWindowsSamiLuleNorway : Windows Sami (Lule)-Norway
	LanguageIDWindowsSamiLuleNorway = LanguageID(0x103B)
	// LanguageIDWindowsSamiLuleSweden : Windows Sami (Lule)-Sweden
	LanguageIDWindowsSamiLuleSweden = LanguageID(0x143B)
	// LanguageIDWindowsSamiNorthernFinland : Windows Sami (Northern)-Finland
	LanguageIDWindowsSamiNorthernFinland = LanguageID(0x0C3B)
	// LanguageIDWindowsSamiNorthernNorway : Windows Sami (Northern)-Norway
	LanguageIDWindowsSamiNorthernNorway = LanguageID(0x043B)
	// LanguageIDWindowsSamiNorthernSweden : Windows Sami (Northern)-Sweden
	LanguageIDWindowsSamiNorthernSweden = LanguageID(0x083B)
	// LanguageIDWindowsSamiSkoltFinland : Windows Sami (Skolt)-Finland
	LanguageIDWindowsSamiSkoltFinland = LanguageID(0x203B)
	// LanguageIDWindowsSamiSouthernNorway : Windows Sami (Southern)-Norway
	LanguageIDWindowsSamiSouthernNorway = LanguageID(0x183B)
	// LanguageIDWindowsSamiSouthernSweden : Windows Sami (Southern)-Sweden
	LanguageIDWindowsSamiSouthernSweden = LanguageID(0x1C3B)
	// LanguageIDWindowsSanskritIndia : Windows Sanskrit-India
	LanguageIDWindowsSanskritIndia = LanguageID(0x044F)
	// LanguageIDWindowsSerbianCyrillicBosniaandHerzegovina : Windows Serbian (Cyrillic)-Bosnia and Herzegovina
	LanguageIDWindowsSerbianCyrillicBosniaandHerzegovina = LanguageID(0x1C1A)
	// LanguageIDWindowsSerbianCyrillicSerbia : Windows Serbian (Cyrillic)-Serbia
	LanguageIDWindowsSerbianCyrillicSerbia = LanguageID(0x0C1A)
	// LanguageIDWindowsSerbianLatinBosniaandHerzegovina : Windows Serbian (Latin)-Bosnia and Herzegovina
	LanguageIDWindowsSerbianLatinBosniaandHerzegovina = LanguageID(0x181A)
	// LanguageIDWindowsSerbianLatinSerbia : Windows Serbian (Latin)-Serbia
	LanguageIDWindowsSerbianLatinSerbia = LanguageID(0x081A)
	// LanguageIDWindowsSesothosaLeboaSouthAfrica : Windows Sesotho sa Leboa-South Africa
	LanguageIDWindowsSesothosaLeboaSouthAfrica = LanguageID(0x046C)
	// LanguageIDWindowsSetswanaSouthAfrica : Windows Setswana-South Africa
	LanguageIDWindowsSetswanaSouthAfrica = LanguageID(0x0432)
	// LanguageIDWindowsSinhalaSriLanka : Windows Sinhala-Sri Lanka
	LanguageIDWindowsSinhalaSriLanka = LanguageID(0x045B)
	// LanguageIDWindowsSlovakSlovakia : Windows Slovak-Slovakia
	LanguageIDWindowsSlovakSlovakia = LanguageID(0x041B)
	// LanguageIDWindowsSlovenianSlovenia : Windows Slovenian-Slovenia
	LanguageIDWindowsSlovenianSlovenia = LanguageID(0x0424)
	// LanguageIDWindowsSpanishArgentina : Windows Spanish-Argentina
	LanguageIDWindowsSpanishArgentina = LanguageID(0x2C0A)
	// LanguageIDWindowsSpanishBolivia : Windows Spanish-Bolivia
	LanguageIDWindowsSpanishBolivia = LanguageID(0x400A)
	// LanguageIDWindowsSpanishChile : Windows Spanish-Chile
	LanguageIDWindowsSpanishChile = LanguageID(0x340A)
	// LanguageIDWindowsSpanishColombia : Windows Spanish-Colombia
	LanguageIDWindowsSpanishColombia = LanguageID(0x240A)
	// LanguageIDWindowsSpanishCostaRica : Windows Spanish-Costa Rica
	LanguageIDWindowsSpanishCostaRica = LanguageID(0x140A)
	// LanguageIDWindowsSpanishDominicanRepublic : Windows Spanish-Dominican Republic
	LanguageIDWindowsSpanishDominicanRepublic = LanguageID(0x1C0A)
	// LanguageIDWindowsSpanishEcuador : Windows Spanish-Ecuador
	LanguageIDWindowsSpanishEcuador = LanguageID(0x300A)
	// LanguageIDWindowsSpanishElSalvador : Windows Spanish-El Salvador
	LanguageIDWindowsSpanishElSalvador = LanguageID(0x440A)
	// LanguageIDWindowsSpanishGuatemala : Windows Spanish-Guatemala
	LanguageIDWindowsSpanishGuatemala = LanguageID(0x100A)
	// LanguageIDWindowsSpanishHonduras : Windows Spanish-Honduras
	LanguageIDWindowsSpanishHonduras = LanguageID(0x480A)
	// LanguageIDWindowsSpanishMexico : Windows Spanish-Mexico
	LanguageIDWindowsSpanishMexico = LanguageID(0x080A)
	// LanguageIDWindowsSpanishNicaragua : Windows Spanish-Nicaragua
	LanguageIDWindowsSpanishNicaragua = LanguageID(0x4C0A)
	// LanguageIDWindowsSpanishPanama : Windows Spanish-Panama
	LanguageIDWindowsSpanishPanama = LanguageID(0x180A)
	// LanguageIDWindowsSpanishParaguay : Windows Spanish-Paraguay
	LanguageIDWindowsSpanishParaguay = LanguageID(0x3C0A)
	// LanguageIDWindowsSpanishPeru : Windows Spanish-Peru
	LanguageIDWindowsSpanishPeru = LanguageID(0x280A)
	// LanguageIDWindowsSpanishPuertoRico : Windows Spanish-Puerto Rico
	LanguageIDWindowsSpanishPuertoRico = LanguageID(0x500A)
	// LanguageIDWindowsSpanishModernSortSpain : Windows Spanish (Modern Sort)-Spain
	LanguageIDWindowsSpanishModernSortSpain = LanguageID(0x0C0A)
	// LanguageIDWindowsSpanishTraditionalSortSpain : Windows Spanish (Traditional Sort)-Spain
	LanguageIDWindowsSpanishTraditionalSortSpain = LanguageID(0x040A)
	// LanguageIDWindowsSpanishUnitedStates : Windows Spanish-United States
	LanguageIDWindowsSpanishUnitedStates = LanguageID(0x540A)
	// LanguageIDWindowsSpanishUruguay : Windows Spanish-Uruguay
	LanguageIDWindowsSpanishUruguay = LanguageID(0x380A)
	// LanguageIDWindowsSpanishVenezuela : Windows Spanish-Venezuela
	LanguageIDWindowsSpanishVenezuela = LanguageID(0x200A)
	// LanguageIDWindowsSwedenFinland : Windows Sweden-Finland
	LanguageIDWindowsSwedenFinland = LanguageID(0x081D)
	// LanguageIDWindowsSwedishSweden : Windows Swedish-Sweden
	LanguageIDWindowsSwedishSweden = LanguageID(0x041D)
	// LanguageIDWindowsSyriacSyria : Windows Syriac-Syria
	LanguageIDWindowsSyriacSyria = LanguageID(0x045A)
	// LanguageIDWindowsTajikCyrillicTajikistan : Windows Tajik (Cyrillic)-Tajikistan
	LanguageIDWindowsTajikCyrillicTajikistan = LanguageID(0x0428)
	// LanguageIDWindowsTamazightLatinAlgeria : Windows Tamazight (Latin)-Algeria
	LanguageIDWindowsTamazightLatinAlgeria = LanguageID(0x085F)
	// LanguageIDWindowsTamilIndia : Windows Tamil-India
	LanguageIDWindowsTamilIndia = LanguageID(0x0449)
	// LanguageIDWindowsTatarRussia : Windows Tatar-Russia
	LanguageIDWindowsTatarRussia = LanguageID(0x0444)
	// LanguageIDWindowsTeluguIndia : Windows Telugu-India
	LanguageIDWindowsTeluguIndia = LanguageID(0x044A)
	// LanguageIDWindowsThaiThailand : Windows Thai-Thailand
	LanguageIDWindowsThaiThailand = LanguageID(0x041E)
	// LanguageIDWindowsTibetanPRC : Windows Tibetan-PRC
	LanguageIDWindowsTibetanPRC = LanguageID(0x0451)
	// LanguageIDWindowsTurkishTurkey : Windows Turkish-Turkey
	LanguageIDWindowsTurkishTurkey = LanguageID(0x041F)
	// LanguageIDWindowsTurkmenTurkmenistan : Windows Turkmen-Turkmenistan
	LanguageIDWindowsTurkmenTurkmenistan = LanguageID(0x0442)
	// LanguageIDWindowsUighurPRC : Windows Uighur-PRC
	LanguageIDWindowsUighurPRC = LanguageID(0x0480)
	// LanguageIDWindowsUkrainianUkraine : Windows Ukrainian-Ukraine
	LanguageIDWindowsUkrainianUkraine = LanguageID(0x0422)
	// LanguageIDWindowsUpperSorbianGermany : Windows Upper Sorbian-Germany
	LanguageIDWindowsUpperSorbianGermany = LanguageID(0x042E)
	// LanguageIDWindowsUrduIslamicRepublicofPakistan : Windows Urdu-Islamic Republic of Pakistan
	LanguageIDWindowsUrduIslamicRepublicofPakistan = LanguageID(0x0420)
	// LanguageIDWindowsUzbekCyrillicUzbekistan : Windows Uzbek (Cyrillic)-Uzbekistan
	LanguageIDWindowsUzbekCyrillicUzbekistan = LanguageID(0x0843)
	// LanguageIDWindowsUzbekLatinUzbekistan : Windows Uzbek (Latin)-Uzbekistan
	LanguageIDWindowsUzbekLatinUzbekistan = LanguageID(0x0443)
	// LanguageIDWindowsVietnameseVietnam : Windows Vietnamese-Vietnam
	LanguageIDWindowsVietnameseVietnam = LanguageID(0x042A)
	// LanguageIDWindowsWelshUnitedKingdom : Windows Welsh-United Kingdom
	LanguageIDWindowsWelshUnitedKingdom = LanguageID(0x0452)
	// LanguageIDWindowsWolofSenegal : Windows Wolof-Senegal
	LanguageIDWindowsWolofSenegal = LanguageID(0x0488)
	// LanguageIDWindowsYakutRussia : Windows Yakut-Russia
	LanguageIDWindowsYakutRussia = LanguageID(0x0485)
	// LanguageIDWindowsYiPRC : Windows Yi-PRC
	LanguageIDWindowsYiPRC = LanguageID(0x0478)
	// LanguageIDWindowsYorubaNigeria : Windows Yoruba-Nigeria
	LanguageIDWindowsYorubaNigeria = LanguageID(0x046A)
	// LanguageIDMacintoshEnglish : Macintosh English
	LanguageIDMacintoshEnglish = LanguageID(0)
	// LanguageIDMacintoshFrench : Macintosh French
	LanguageIDMacintoshFrench = LanguageID(1)
	// LanguageIDMacintoshGerman : Macintosh German
	LanguageIDMacintoshGerman = LanguageID(2)
	// LanguageIDMacintoshItalian : Macintosh Italian
	LanguageIDMacintoshItalian = LanguageID(3)
	// LanguageIDMacintoshDutch : Macintosh Dutch
	LanguageIDMacintoshDutch = LanguageID(4)
	// LanguageIDMacintoshSwedish : Macintosh Swedish
	LanguageIDMacintoshSwedish = LanguageID(5)
	// LanguageIDMacintoshSpanish : Macintosh Spanish
	LanguageIDMacintoshSpanish = LanguageID(6)
	// LanguageIDMacintoshDanish : Macintosh Danish
	LanguageIDMacintoshDanish = LanguageID(7)
	// LanguageIDMacintoshPortuguese : Macintosh Portuguese
	LanguageIDMacintoshPortuguese = LanguageID(8)
	// LanguageIDMacintoshNorwegian : Macintosh Norwegian
	LanguageIDMacintoshNorwegian = LanguageID(9)
	// LanguageIDMacintoshHebrew : Macintosh Hebrew
	LanguageIDMacintoshHebrew = LanguageID(10)
	// LanguageIDMacintoshJapanese : Macintosh Japanese
	LanguageIDMacintoshJapanese = LanguageID(11)
	// LanguageIDMacintoshArabic : Macintosh Arabic
	LanguageIDMacintoshArabic = LanguageID(12)
	// LanguageIDMacintoshFinnish : Macintosh Finnish
	LanguageIDMacintoshFinnish = LanguageID(13)
	// LanguageIDMacintoshGreek : Macintosh Greek
	LanguageIDMacintoshGreek = LanguageID(14)
	// LanguageIDMacintoshIcelandic : Macintosh Icelandic
	LanguageIDMacintoshIcelandic = LanguageID(15)
	// LanguageIDMacintoshMaltese : Macintosh Maltese
	LanguageIDMacintoshMaltese = LanguageID(16)
	// LanguageIDMacintoshTurkish : Macintosh Turkish
	LanguageIDMacintoshTurkish = LanguageID(17)
	// LanguageIDMacintoshCroatian : Macintosh Croatian
	LanguageIDMacintoshCroatian = LanguageID(18)
	// LanguageIDMacintoshChineseTraditional : Macintosh Chinese (Traditional)
	LanguageIDMacintoshChineseTraditional = LanguageID(19)
	// LanguageIDMacintoshUrdu : Macintosh Urdu
	LanguageIDMacintoshUrdu = LanguageID(20)
	// LanguageIDMacintoshHindi : Macintosh Hindi
	LanguageIDMacintoshHindi = LanguageID(21)
	// LanguageIDMacintoshThai : Macintosh Thai
	LanguageIDMacintoshThai = LanguageID(22)
	// LanguageIDMacintoshKorean : Macintosh Korean
	LanguageIDMacintoshKorean = LanguageID(23)
	// LanguageIDMacintoshLithuanian : Macintosh Lithuanian
	LanguageIDMacintoshLithuanian = LanguageID(24)
	// LanguageIDMacintoshPolish : Macintosh Polish
	LanguageIDMacintoshPolish = LanguageID(25)
	// LanguageIDMacintoshHungarian : Macintosh Hungarian
	LanguageIDMacintoshHungarian = LanguageID(26)
	// LanguageIDMacintoshEstonian : Macintosh Estonian
	LanguageIDMacintoshEstonian = LanguageID(27)
	// LanguageIDMacintoshLatvian : Macintosh Latvian
	LanguageIDMacintoshLatvian = LanguageID(28)
	// LanguageIDMacintoshSami : Macintosh Sami
	LanguageIDMacintoshSami = LanguageID(29)
	// LanguageIDMacintoshFaroese : Macintosh Faroese
	LanguageIDMacintoshFaroese = LanguageID(30)
	// LanguageIDMacintoshFarsiPersian : Macintosh Farsi/Persian
	LanguageIDMacintoshFarsiPersian = LanguageID(31)
	// LanguageIDMacintoshRussian : Macintosh Russian
	LanguageIDMacintoshRussian = LanguageID(32)
	// LanguageIDMacintoshChineseSimplified : Macintosh Chinese (Simplified)
	LanguageIDMacintoshChineseSimplified = LanguageID(33)
	// LanguageIDMacintoshFlemish : Macintosh Flemish
	LanguageIDMacintoshFlemish = LanguageID(34)
	// LanguageIDMacintoshIrishGaelic : Macintosh Irish Gaelic
	LanguageIDMacintoshIrishGaelic = LanguageID(35)
	// LanguageIDMacintoshAlbanian : Macintosh Albanian
	LanguageIDMacintoshAlbanian = LanguageID(36)
	// LanguageIDMacintoshRomanian : Macintosh Romanian
	LanguageIDMacintoshRomanian = LanguageID(37)
	// LanguageIDMacintoshCzech : Macintosh Czech
	LanguageIDMacintoshCzech = LanguageID(38)
	// LanguageIDMacintoshSlovak : Macintosh Slovak
	LanguageIDMacintoshSlovak = LanguageID(39)
	// LanguageIDMacintoshSlovenian : Macintosh Slovenian
	LanguageIDMacintoshSlovenian = LanguageID(40)
	// LanguageIDMacintoshYiddish : Macintosh Yiddish
	LanguageIDMacintoshYiddish = LanguageID(41)
	// LanguageIDMacintoshSerbian : Macintosh Serbian
	LanguageIDMacintoshSerbian = LanguageID(42)
	// LanguageIDMacintoshMacedonian : Macintosh Macedonian
	LanguageIDMacintoshMacedonian = LanguageID(43)
	// LanguageIDMacintoshBulgarian : Macintosh Bulgarian
	LanguageIDMacintoshBulgarian = LanguageID(44)
	// LanguageIDMacintoshUkrainian : Macintosh Ukrainian
	LanguageIDMacintoshUkrainian = LanguageID(45)
	// LanguageIDMacintoshByelorussian : Macintosh Byelorussian
	LanguageIDMacintoshByelorussian = LanguageID(46)
	// LanguageIDMacintoshUzbek : Macintosh Uzbek
	LanguageIDMacintoshUzbek = LanguageID(47)
	// LanguageIDMacintoshKazakh : Macintosh Kazakh
	LanguageIDMacintoshKazakh = LanguageID(48)
	// LanguageIDMacintoshAzerbaijaniCyrillicscript : Macintosh Azerbaijani (Cyrillic script)
	LanguageIDMacintoshAzerbaijaniCyrillicscript = LanguageID(49)
	// LanguageIDMacintoshAzerbaijaniArabicscript : Macintosh Azerbaijani (Arabic script)
	LanguageIDMacintoshAzerbaijaniArabicscript = LanguageID(50)
	// LanguageIDMacintoshArmenian : Macintosh Armenian
	LanguageIDMacintoshArmenian = LanguageID(51)
	// LanguageIDMacintoshGeorgian : Macintosh Georgian
	LanguageIDMacintoshGeorgian = LanguageID(52)
	// LanguageIDMacintoshMoldavian : Macintosh Moldavian
	LanguageIDMacintoshMoldavian = LanguageID(53)
	// LanguageIDMacintoshKirghiz : Macintosh Kirghiz
	LanguageIDMacintoshKirghiz = LanguageID(54)
	// LanguageIDMacintoshTajiki : Macintosh Tajiki
	LanguageIDMacintoshTajiki = LanguageID(55)
	// LanguageIDMacintoshTurkmen : Macintosh Turkmen
	LanguageIDMacintoshTurkmen = LanguageID(56)
	// LanguageIDMacintoshMongolianMongolianscript : Macintosh Mongolian (Mongolian script)
	LanguageIDMacintoshMongolianMongolianscript = LanguageID(57)
	// LanguageIDMacintoshMongolianCyrillicscript : Macintosh Mongolian (Cyrillic script)
	LanguageIDMacintoshMongolianCyrillicscript = LanguageID(58)
	// LanguageIDMacintoshPashto : Macintosh Pashto
	LanguageIDMacintoshPashto = LanguageID(59)
	// LanguageIDMacintoshKurdish : Macintosh Kurdish
	LanguageIDMacintoshKurdish = LanguageID(60)
	// LanguageIDMacintoshKashmiri : Macintosh Kashmiri
	LanguageIDMacintoshKashmiri = LanguageID(61)
	// LanguageIDMacintoshSindhi : Macintosh Sindhi
	LanguageIDMacintoshSindhi = LanguageID(62)
	// LanguageIDMacintoshTibetan : Macintosh Tibetan
	LanguageIDMacintoshTibetan = LanguageID(63)
	// LanguageIDMacintoshNepali : Macintosh Nepali
	LanguageIDMacintoshNepali = LanguageID(64)
	// LanguageIDMacintoshSanskrit : Macintosh Sanskrit
	LanguageIDMacintoshSanskrit = LanguageID(65)
	// LanguageIDMacintoshMarathi : Macintosh Marathi
	LanguageIDMacintoshMarathi = LanguageID(66)
	// LanguageIDMacintoshBengali : Macintosh Bengali
	LanguageIDMacintoshBengali = LanguageID(67)
	// LanguageIDMacintoshAssamese : Macintosh Assamese
	LanguageIDMacintoshAssamese = LanguageID(68)
	// LanguageIDMacintoshGujarati : Macintosh Gujarati
	LanguageIDMacintoshGujarati = LanguageID(69)
	// LanguageIDMacintoshPunjabi : Macintosh Punjabi
	LanguageIDMacintoshPunjabi = LanguageID(70)
	// LanguageIDMacintoshOriya : Macintosh Oriya
	LanguageIDMacintoshOriya = LanguageID(71)
	// LanguageIDMacintoshMalayalam : Macintosh Malayalam
	LanguageIDMacintoshMalayalam = LanguageID(72)
	// LanguageIDMacintoshKannada : Macintosh Kannada
	LanguageIDMacintoshKannada = LanguageID(73)
	// LanguageIDMacintoshTamil : Macintosh Tamil
	LanguageIDMacintoshTamil = LanguageID(74)
	// LanguageIDMacintoshTelugu : Macintosh Telugu
	LanguageIDMacintoshTelugu = LanguageID(75)
	// LanguageIDMacintoshSinhalese : Macintosh Sinhalese
	LanguageIDMacintoshSinhalese = LanguageID(76)
	// LanguageIDMacintoshBurmese : Macintosh Burmese
	LanguageIDMacintoshBurmese = LanguageID(77)
	// LanguageIDMacintoshKhmer : Macintosh Khmer
	LanguageIDMacintoshKhmer = LanguageID(78)
	// LanguageIDMacintoshLao : Macintosh Lao
	LanguageIDMacintoshLao = LanguageID(79)
	// LanguageIDMacintoshVietnamese : Macintosh Vietnamese
	LanguageIDMacintoshVietnamese = LanguageID(80)
	// LanguageIDMacintoshIndonesian : Macintosh Indonesian
	LanguageIDMacintoshIndonesian = LanguageID(81)
	// LanguageIDMacintoshTagalong : Macintosh Tagalong
	LanguageIDMacintoshTagalong = LanguageID(82)
	// LanguageIDMacintoshMalayRomanscript : Macintosh Malay (Roman script)
	LanguageIDMacintoshMalayRomanscript = LanguageID(83)
	// LanguageIDMacintoshMalayArabicscript : Macintosh Malay (Arabic script)
	LanguageIDMacintoshMalayArabicscript = LanguageID(84)
	// LanguageIDMacintoshAmharic : Macintosh Amharic
	LanguageIDMacintoshAmharic = LanguageID(85)
	// LanguageIDMacintoshTigrinya : Macintosh Tigrinya
	LanguageIDMacintoshTigrinya = LanguageID(86)
	// LanguageIDMacintoshGalla : Macintosh Galla
	LanguageIDMacintoshGalla = LanguageID(87)
	// LanguageIDMacintoshSomali : Macintosh Somali
	LanguageIDMacintoshSomali = LanguageID(88)
	// LanguageIDMacintoshSwahili : Macintosh Swahili
	LanguageIDMacintoshSwahili = LanguageID(89)
	// LanguageIDMacintoshKinyarwandaRuanda : Macintosh Kinyarwanda/Ruanda
	LanguageIDMacintoshKinyarwandaRuanda = LanguageID(90)
	// LanguageIDMacintoshRundi : Macintosh Rundi
	LanguageIDMacintoshRundi = LanguageID(91)
	// LanguageIDMacintoshNyanjaChewa : Macintosh Nyanja/Chewa
	LanguageIDMacintoshNyanjaChewa = LanguageID(92)
	// LanguageIDMacintoshMalagasy : Macintosh Malagasy
	LanguageIDMacintoshMalagasy = LanguageID(93)
	// LanguageIDMacintoshEsperanto : Macintosh Esperanto
	LanguageIDMacintoshEsperanto = LanguageID(94)
	// LanguageIDMacintoshWelsh : Macintosh Welsh
	LanguageIDMacintoshWelsh = LanguageID(128)
	// LanguageIDMacintoshBasque : Macintosh Basque
	LanguageIDMacintoshBasque = LanguageID(129)
	// LanguageIDMacintoshCatalan : Macintosh Catalan
	LanguageIDMacintoshCatalan = LanguageID(130)
	// LanguageIDMacintoshLatin : Macintosh Latin
	LanguageIDMacintoshLatin = LanguageID(131)
	// LanguageIDMacintoshQuenchua : Macintosh Quenchua
	LanguageIDMacintoshQuenchua = LanguageID(132)
	// LanguageIDMacintoshGuarani : Macintosh Guarani
	LanguageIDMacintoshGuarani = LanguageID(133)
	// LanguageIDMacintoshAymara : Macintosh Aymara
	LanguageIDMacintoshAymara = LanguageID(134)
	// LanguageIDMacintoshTatar : Macintosh Tatar
	LanguageIDMacintoshTatar = LanguageID(135)
	// LanguageIDMacintoshUighur : Macintosh Uighur
	LanguageIDMacintoshUighur = LanguageID(136)
	// LanguageIDMacintoshDzongkha : Macintosh Dzongkha
	LanguageIDMacintoshDzongkha = LanguageID(137)
	// LanguageIDMacintoshJavaneseRomanscript : Macintosh Javanese (Roman script)
	LanguageIDMacintoshJavaneseRomanscript = LanguageID(138)
	// LanguageIDMacintoshSundaneseRomanscript : Macintosh Sundanese (Roman script)
	LanguageIDMacintoshSundaneseRomanscript = LanguageID(139)
	// LanguageIDMacintoshGalician : Macintosh Galician
	LanguageIDMacintoshGalician = LanguageID(140)
	// LanguageIDMacintoshAfrikaans : Macintosh Afrikaans
	LanguageIDMacintoshAfrikaans = LanguageID(141)
	// LanguageIDMacintoshBreton : Macintosh Breton
	LanguageIDMacintoshBreton = LanguageID(142)
	// LanguageIDMacintoshInuktitut : Macintosh Inuktitut
	LanguageIDMacintoshInuktitut = LanguageID(143)
	// LanguageIDMacintoshScottishGaelic : Macintosh Scottish Gaelic
	LanguageIDMacintoshScottishGaelic = LanguageID(144)
	// LanguageIDMacintoshManxGaelic : Macintosh Manx Gaelic
	LanguageIDMacintoshManxGaelic = LanguageID(145)
	// LanguageIDMacintoshIrishGaelicwithdotabove : Macintosh Irish Gaelic (with dot above)
	LanguageIDMacintoshIrishGaelicwithdotabove = LanguageID(146)
	// LanguageIDMacintoshTongan : Macintosh Tongan
	LanguageIDMacintoshTongan = LanguageID(147)
	// LanguageIDMacintoshGreekpolytonic : Macintosh Greek (polytonic)
	LanguageIDMacintoshGreekpolytonic = LanguageID(148)
	// LanguageIDMacintoshGreenlandic : Macintosh Greenlandic
	LanguageIDMacintoshGreenlandic = LanguageID(149)
	// LanguageIDMacintoshAzerbaijaniRomanscript : Macintosh Azerbaijani (Roman script)
	LanguageIDMacintoshAzerbaijaniRomanscript = LanguageID(150)
)
View Source
const (
	// NameIDCopyrightNotice : Copyright notice.
	NameIDCopyrightNotice = NameID(0)
	// NameIDFontFamilyName : Font Family name. This family name is assumed to be shared among fonts that differ only in weight or style (italic, oblique).
	NameIDFontFamilyName = NameID(1)
	// NameIDFontSubfamilyName : Font Subfamily name. The Font Subfamily name distinguishes the fonts in a group with the same Font Family name (name ID 1).
	NameIDFontSubfamilyName = NameID(2)
	// NameIDUniqueFontIdentifier : Unique font identifier
	NameIDUniqueFontIdentifier = NameID(3)
	// NameIDFontFullName : Full font name that reflects all family and relevant subfamily descriptors.
	NameIDFontFullName = NameID(4)
	// NameIDVersion : Version string. Should begin with the syntax 'Version <number>.<number>' (upper case, lower case, or mixed, with a space between “Version” and the number).
	NameIDVersion = NameID(5)
	// NameIDPostScriptName : PostScript name for the font; Name ID 6 specifies a string which is used to invoke a PostScript language font that corresponds to this OpenType font.
	NameIDPostScriptName = NameID(6)
	// NameIDTrademark : Trademark; this is used to save any trademark notice/information for this font.
	NameIDTrademark = NameID(7)
	// NameIDManufacturerName : Manufacturer Name.
	NameIDManufacturerName = NameID(8)
	// NameIDDesignerName : name of the designer of the typeface.
	NameIDDesignerName = NameID(9)
	// NameIDDescription : description of the typeface. Can contain revision information, usage recommendations, history, features, etc.
	NameIDDescription = NameID(10)
	// NameIDURLVendor : URL of font vendor (with protocol, e.g., http://, ftp://). If a unique serial number is embedded in the URL, it can be used to register the font.
	NameIDURLVendor = NameID(11)
	// NameIDURLDesigner : URL of typeface designer (with protocol, e.g., http://, ftp://).
	NameIDURLDesigner = NameID(12)
	// NameIDLicenseDescription : description of how the font may be legally used, or different example scenarios for licensed use. This field should be written in plain language, not legalese.
	NameIDLicenseDescription = NameID(13)
	// NameIDLicenseInfoURL : URL where additional licensing information can be found.
	NameIDLicenseInfoURL = NameID(14)
	// NameIDReserved : Reserved.
	NameIDReserved = NameID(15)
	// NameIDTypographicFamilyName : The typographic family grouping doesn't impose any constraints on the number of faces within it, in contrast with the 4-style family grouping (ID 1), which is present both for historical reasons and to express style linking groups. If name ID 16 is absent, then name ID 1 is considered to be the typographic family name.
	NameIDTypographicFamilyName = NameID(16)
	// NameIDTypographicSubfamilyName : This allows font designers to specify a subfamily name within the typographic family grouping. This string must be unique within a particular typographic family. If it is absent, then name ID 2 is considered to be the typographic subfamily name.
	NameIDTypographicSubfamilyName = NameID(17)
	// NameIDCompatibleFull : On the Macintosh, the menu name is constructed using the FOND resource. This usually matches the Full Name.
	NameIDCompatibleFull = NameID(18)
	// NameIDSampleText : This can be the font name, or any other text that the designer thinks is the best sample to display the font in.
	NameIDSampleText = NameID(19)
	// NameIDPostScriptCIDFindfontName : Its presence in a font means that the nameID 6 holds a PostScript font name that is meant to be used with the “composefont” invocation in order to invoke the font in a PostScript interpreter.
	NameIDPostScriptCIDFindfontName = NameID(20)
	// NameIDWWSFamilyName : Used to provide a WWS-conformant family name in case the entries for IDs 16 and 17 do not conform to the WWS model.
	NameIDWWSFamilyName = NameID(21)
	// NameIDWWSSubfamilyName : Used in conjunction with ID 21, this ID provides a WWS-conformant subfamily name (reflecting only weight, width and slope attributes) in case the entries for IDs 16 and 17 do not conform to the WWS model.
	NameIDWWSSubfamilyName = NameID(22)
	// NameIDLightBackgroundPalette : if used in the CPAL table’s Palette Labels Array, specifies that the corresponding color palette in the CPAL table is appropriate to use with the font when displaying it on a light background such as white.
	NameIDLightBackgroundPalette = NameID(23)
	// NameIDDarkBackgroundPalette : if used in the CPAL table’s Palette Labels Array, specifies that the corresponding color palette in the CPAL table is appropriate to use with the font when displaying it on a dark background such as black.
	NameIDDarkBackgroundPalette = NameID(24)
	// NameIDVariationsPostScriptNamePrefix : If present in a variable font, it may be used as the family prefix in the PostScript Name Generation for Variation Fonts algorithm.
	NameIDVariationsPostScriptNamePrefix = NameID(25)
)
View Source
const (
	// SfntVersionTrueTypeOpenType : OpenType fonts that contain TrueType outlines.
	SfntVersionTrueTypeOpenType = Tag(0x00010000)
	// SfntVersionCFFOpenType  : OpenType fonts containing CFF data.
	SfntVersionCFFOpenType = Tag(0x4F54544F) // OTTO
	// SfntVersionAppleTrueType : The Apple specification for TrueType font.
	SfntVersionAppleTrueType = Tag(0x74727565) // true
	// SfntVersionAppleType1 : The Apple specification for the old style of PostScript font.
	SfntVersionAppleType1 = Tag(0x74797031) // typ1
	// SfntVersionTTCHeader : The header of TTC format file.
	SfntVersionTTCHeader = Tag(0x74746366) // ttcf
)
View Source
const (
	// TableRecordLength : size of TableRecord
	TableRecordLength = uint32(16)
)

Variables

This section is empty.

Functions

func IsFontCollection

func IsFontCollection(f *os.File) (bool, error)

IsFontCollection returns true if the file is FontCollection format.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder is a font file builder.

func NewBuilder

func NewBuilder(sfntVersion Tag) *Builder

NewBuilder creates Builder.

func (*Builder) Build

func (b *Builder) Build(writer io.Writer) (err error)

Build creates new font file.

func (*Builder) WithTable

func (b *Builder) WithTable(t Table) *Builder

WithTable set table on target of Builder. If table is nil, Builder ignores it or removes the own table that has the same tag of it.

func (*Builder) WithTables

func (b *Builder) WithTables(tables []Table) *Builder

WithTables set tables on target of Builder.

type CMap

type CMap struct {
	Header          *CMapHeader
	EncodingRecords []*EncodingRecord
}

CMap is a "cmap" table.

func (*CMap) CheckSum

func (cm *CMap) CheckSum() (checkSum uint32, err error)

CheckSum for this table.

func (*CMap) Exists

func (cm *CMap) Exists() bool

Exists returns true if this is not nil.

func (*CMap) Length

func (cm *CMap) Length() uint32

Length returns the size(byte) of this table.

func (*CMap) Tag

func (cm *CMap) Tag() Tag

Tag is table name.

type CMapHeader

type CMapHeader struct {
	Version   uint16
	NumTables uint16
}

CMapHeader is a header block of a "cmap" table.

type Cvt

type Cvt struct {
	Values []int16
}

Cvt is a "cvt" table. This table contains a list of values that can be referenced by instructions.

func (*Cvt) CheckSum

func (c *Cvt) CheckSum() (checkSum uint32, err error)

CheckSum for this table.

func (*Cvt) Exists

func (c *Cvt) Exists() bool

Exists returns true if this is not nil.

func (*Cvt) Length

func (c *Cvt) Length() uint32

Length returns the size(byte) of this table.

func (*Cvt) Tag

func (c *Cvt) Tag() Tag

Tag is table name.

type EncodingID

type EncodingID uint16

EncodingID is used to specify a particular character encoding.

func (EncodingID) Name

func (e EncodingID) Name(p PlatformID) string

Name returns the name of Encoding ID.

func (EncodingID) String

func (e EncodingID) String(p PlatformID) string

type EncodingRecord

type EncodingRecord struct {
	PlatformID PlatformID
	EncodingID EncodingID
	Offset     uint32
	Subtable   EncodingRecordSubtable
}

EncodingRecord has a platform id, a encoding id, and a subtable.

func (*EncodingRecord) CMap

func (er *EncodingRecord) CMap() map[int32]uint16

CMap is the resolved cmap of the encoding record subtable.

func (*EncodingRecord) Length

func (er *EncodingRecord) Length() uint32

Length returns the size(byte) of this EncodingRecord.

type EncodingRecordSubtable

type EncodingRecordSubtable interface {
	GetFormatNumber() EncodingRecordSubtableFormatNumber
	GetCMap() map[int32]uint16
	GetLength() uint32
	// contains filtered or unexported methods
}

EncodingRecordSubtable is a character-to-glyph-index mapping table.

type EncodingRecordSubtableFormat0

type EncodingRecordSubtableFormat0 struct {
	Length       uint16
	Language     uint16
	GlyphIDArray [256]uint8
	// contains filtered or unexported fields
}

EncodingRecordSubtableFormat0 is the Apple standard character to glyph index mapping table.

func (*EncodingRecordSubtableFormat0) GetCMap

func (st *EncodingRecordSubtableFormat0) GetCMap() map[int32]uint16

GetCMap returns the resolved cmap of the encoding record subtable.

func (*EncodingRecordSubtableFormat0) GetFormatNumber

GetFormatNumber returns the the format number of the encoding record subtable.

func (*EncodingRecordSubtableFormat0) GetLength

func (st *EncodingRecordSubtableFormat0) GetLength() uint32

GetLength returns the length of this subtable.

type EncodingRecordSubtableFormat12

type EncodingRecordSubtableFormat12 struct {
	Length    uint32
	Language  uint32
	NumGroups uint32
	// contains filtered or unexported fields
}

EncodingRecordSubtableFormat12 is the Microsoft standard character-to-glyph-index mapping table for fonts supporting Unicode supplementary-plane characters (U+10000 to U+10FFFF).

func (*EncodingRecordSubtableFormat12) GetCMap

func (st *EncodingRecordSubtableFormat12) GetCMap() map[int32]uint16

GetCMap returns the resolved cmap of the encoding record subtable.

func (*EncodingRecordSubtableFormat12) GetFormatNumber

GetFormatNumber returns the the format number of the encoding record subtable.

func (*EncodingRecordSubtableFormat12) GetLength

func (st *EncodingRecordSubtableFormat12) GetLength() uint32

GetLength returns the length of this subtable.

type EncodingRecordSubtableFormat2

type EncodingRecordSubtableFormat2 struct {
	Length        uint16
	Language      uint16
	SubHeaderKeys [256]uint16
	FirstCode     []uint16
	EntryCount    []uint16
	IDDelta       []int16
	IDRangeOffset []uint16
	// contains filtered or unexported fields
}

EncodingRecordSubtableFormat2 is useful for the national character code standards used for Japanese, Chinese, and Korean characters.

func (*EncodingRecordSubtableFormat2) GetCMap

func (st *EncodingRecordSubtableFormat2) GetCMap() map[int32]uint16

GetCMap returns the resolved cmap of the encoding record subtable.

func (*EncodingRecordSubtableFormat2) GetFormatNumber

GetFormatNumber returns the the format number of the encoding record subtable.

func (*EncodingRecordSubtableFormat2) GetLength

func (st *EncodingRecordSubtableFormat2) GetLength() uint32

GetLength returns the length of this subtable.

type EncodingRecordSubtableFormat4

type EncodingRecordSubtableFormat4 struct {
	Length               uint16
	Language             uint16
	SegCount             uint16
	SearchRange          uint16
	EntrySelector        uint16
	RangeShift           uint16
	EndCount             []uint16
	ReservedPad          uint16
	StartCount           []uint16
	IDDelta              []int16
	IDRangeOffset        []uint16
	IDRangeOffsetAddress []int64
	// contains filtered or unexported fields
}

EncodingRecordSubtableFormat4 is the Microsoft standard character-to-glyph-index mapping table for fonts that support Unicode BMP characters.

func (*EncodingRecordSubtableFormat4) GetCMap

func (st *EncodingRecordSubtableFormat4) GetCMap() map[int32]uint16

GetCMap returns the resolved cmap of the encoding record subtable.

func (*EncodingRecordSubtableFormat4) GetFormatNumber

GetFormatNumber returns the the format number of the encoding record subtable.

func (*EncodingRecordSubtableFormat4) GetLength

func (st *EncodingRecordSubtableFormat4) GetLength() uint32

GetLength returns the length of this subtable.

type EncodingRecordSubtableFormat6

type EncodingRecordSubtableFormat6 struct {
	Length   uint16
	Language uint16
	// contains filtered or unexported fields
}

EncodingRecordSubtableFormat6 is Trimmed table mapping

func (*EncodingRecordSubtableFormat6) GetCMap

func (st *EncodingRecordSubtableFormat6) GetCMap() map[int32]uint16

GetCMap returns the resolved cmap of the encoding record subtable.

func (*EncodingRecordSubtableFormat6) GetFormatNumber

GetFormatNumber returns the the format number of the encoding record subtable.

func (*EncodingRecordSubtableFormat6) GetLength

func (st *EncodingRecordSubtableFormat6) GetLength() uint32

GetLength returns the length of this subtable.

type EncodingRecordSubtableFormatNumber

type EncodingRecordSubtableFormatNumber uint16

EncodingRecordSubtableFormatNumber is a format specifier of encoding record subtables.

func (EncodingRecordSubtableFormatNumber) String

type Fixed

type Fixed int32

Fixed is a 32-bit signed fixed-point number (16.16)

type Font

type Font struct {
	SfntVersion Tag
	Name        *Name
	CMap        *CMap
	Head        *Head
	Hhea        *Hhea
	Maxp        *Maxp
	Hmtx        *Hmtx
	Cvt         *Cvt
	Fpgm        *Fpgm
	Prep        *Prep
	Loca        *Loca
	Glyf        *Glyf
}

Font is the opentype font.

func ParseFont

func ParseFont(f *os.File) (*Font, error)

ParseFont returns the Font instance from the font file.

func (*Font) FilterGlyf

func (font *Font) FilterGlyf(filter []uint16) (*Font, error)

FilterGlyf creates new Font with filtered glyf. You should set filter[0] = 0, that points to the “missing character”, or this method inserts it.

func (*Font) Tables

func (font *Font) Tables() []Table

Tables are OpenType tables that are not nil.

type FontCollection

type FontCollection struct {
	Fonts []*Font
	// contains filtered or unexported fields
}

FontCollection packages multiple OpenType fonts in a single file structure.

func ParseFontCollections

func ParseFontCollections(f *os.File) (fc *FontCollection, err error)

ParseFontCollections returns the FontCollection instance from the font file.

type Fpgm

type Fpgm struct {
	Values []uint8
}

Fpgm is a "fpgm" table. This table is similar to the CVT Program, except that it is only run once, when the font is first used. It is used only for FDEFs and IDEFs.

func (*Fpgm) CheckSum

func (fpgm *Fpgm) CheckSum() (checkSum uint32, err error)

CheckSum for this table.

func (*Fpgm) Exists

func (fpgm *Fpgm) Exists() bool

Exists returns true if this is not nil.

func (*Fpgm) Length

func (fpgm *Fpgm) Length() uint32

Length returns the size(byte) of this table.

func (*Fpgm) Tag

func (fpgm *Fpgm) Tag() Tag

Tag is table name.

type Glyf

type Glyf struct {
	// contains filtered or unexported fields
}

Glyf is a "glyf" table. This table contains information that describes the glyphs in the font in the TrueType outline format.

func (*Glyf) CheckSum

func (g *Glyf) CheckSum() (checkSum uint32, err error)

CheckSum for this table.

func (*Glyf) Exists

func (g *Glyf) Exists() bool

Exists returns true if this is not nil.

func (*Glyf) Length

func (g *Glyf) Length() uint32

Length returns the size(byte) of this table.

func (*Glyf) Tag

func (g *Glyf) Tag() Tag

Tag is table name.

type Head struct {
	MajorVersion       uint16
	MinorVersion       uint16
	FontRevision       Fixed
	CheckSumAdjustment uint32
	MagicNumber        uint32
	Flags              uint16
	UnitsPerEm         uint16
	Created            LongDateTime
	Modified           LongDateTime
	XMin               int16
	YMin               int16
	XMax               int16
	YMax               int16
	MacStyle           uint16
	LowestRecPPEM      uint16
	FontDirectionHint  int16
	IndexToLocFormat   int16
	GlyphDataFormat    int16
}

Head is a "head" table.

func (*Head) CheckSum

func (h *Head) CheckSum() (checkSum uint32, err error)

CheckSum for this table.

func (*Head) Exists

func (h *Head) Exists() bool

Exists returns true if this is not nil.

func (*Head) Length

func (h *Head) Length() uint32

Length returns the size(byte) of this table.

func (*Head) Tag

func (h *Head) Tag() Tag

Tag is table name.

type Hhea

type Hhea struct {
	MajorVersion        uint16
	MinorVersion        uint16
	Ascender            int16
	Descender           int16
	LineGap             int16
	AdvanceWidthMax     uint16
	MinLeftSideBearing  int16
	MinRightSideBearing int16
	XMaxExtent          int16
	CaretSlopeRise      int16
	CaretSlopeRun       int16
	CaretOffset         int16
	Reserved1           int16
	Reserved2           int16
	Reserved3           int16
	Reserved4           int16
	MetricDataFormat    int16
	NumberOfHMetrics    uint16
}

Hhea is a "hhea" table. This table contains information for horizontal layout.

func (*Hhea) CheckSum

func (h *Hhea) CheckSum() (checkSum uint32, err error)

CheckSum for this table.

func (*Hhea) Exists

func (h *Hhea) Exists() bool

Exists returns true if this is not nil.

func (*Hhea) Length

func (h *Hhea) Length() uint32

Length returns the size(byte) of this table.

func (*Hhea) Tag

func (h *Hhea) Tag() Tag

Tag is table name.

type Hmtx

type Hmtx struct {
	// Paired advance width and left side bearing values for each glyph. Records are indexed by glyph ID.
	HMetrics []*LongHorMetric
	// Left side bearings for glyph IDs greater than or equal to numberOfHMetrics.
	LeftSideBearings []int16
}

Hmtx is a "hmtx" table. The horizontal metrics ('hmtx') table provides glyph advance widths and left side bearings. Left side bearings: The horizontal distance from the base position to the left edge of the glyph's bounding box. Adovance width: The horizontal distance from the current base position and the next base position.

func (*Hmtx) CheckSum

func (h *Hmtx) CheckSum() (checkSum uint32, err error)

CheckSum for this table.

func (*Hmtx) Exists

func (h *Hmtx) Exists() bool

Exists returns true if this is not nil.

func (*Hmtx) Length

func (h *Hmtx) Length() uint32

Length returns the size(byte) of this table.

func (*Hmtx) Tag

func (h *Hmtx) Tag() Tag

Tag is table name.

type LangTagRecord

type LangTagRecord struct {
	// Language-tag string length (in bytes)
	Length uint16
	// Language-tag string offset from start of storage area (in bytes).
	Offset uint16
}

LangTagRecord contains language name of langauge id within the range 0x8000 to 0x8000 + langTagCount - 1.

type LanguageID

type LanguageID uint16

LanguageID is used to specify a particular language.

func (LanguageID) Name

func (l LanguageID) Name(p PlatformID) string

Name returns the name of Language ID.

func (LanguageID) String

func (l LanguageID) String(p PlatformID) string

type Loca

type Loca struct {
	// contains filtered or unexported fields
}

Loca is a "loca" table. The indexToLoc table stores the offsets to the locations of the glyphs in the font, relative to the beginning of the glyphData table.

func (*Loca) CheckSum

func (l *Loca) CheckSum() (checkSum uint32, err error)

CheckSum for this table.

func (*Loca) Exists

func (l *Loca) Exists() bool

Exists returns true if this is not nil.

func (*Loca) Get

func (l *Loca) Get(i int) (offset uint32)

Get returns the offset.

func (*Loca) IsLong

func (l *Loca) IsLong() bool

IsLong returns true if this table is long version.

func (*Loca) IsShort

func (l *Loca) IsShort() bool

IsShort returns true if this table is short version.

func (*Loca) Len

func (l *Loca) Len() int

Len returns the length of the index.

func (*Loca) Length

func (l *Loca) Length() uint32

Length returns the size(byte) of this table.

func (*Loca) Tag

func (l *Loca) Tag() Tag

Tag is table name.

type LongDateTime

type LongDateTime int64

LongDateTime is a Date represented in number of seconds since 12:00 midnight, January 1, 1904. The value is represented as a signed 64-bit integer.

type LongHorMetric

type LongHorMetric struct {
	// Advance width, in font design units.
	AdvanceWidth uint16
	// Glyph left side bearing, in font design units.
	Lsb int16
}

LongHorMetric is a paired advance width and left side bearing values for each glyph.

type Maxp

type Maxp struct {
	Version Fixed
	// The number of glyphs in the font.
	NumGlyphs uint16
	// Maximum points in a non-composite glyph.
	MaxPoints uint16
	// Maximum contours in a non-composite glyph.
	MaxContours uint16
	// Maximum points in a composite glyph.
	MaxCompositePoints uint16
	// Maximum contours in a composite glyph.
	MaxCompositeContours uint16
	// 1 if instructions do not use the twilight zone (Z0), or 2 if instructions do use Z0; should be set to 2 in most cases.
	MaxZones uint16
	// Maximum points used in Z0.
	MaxTwilightPoints uint16
	// Number of Storage Area locations.
	MaxStorage uint16
	// Number of FDEFs, equal to the highest function number + 1.
	MaxFunctionDefs uint16
	// Number of IDEFs.
	MaxInstructionDefs uint16
	// Maximum stack depth.
	MaxStackElements uint16
	// Maximum byte count for glyph instructions.
	MaxSizeOfInstructions uint16
	// Maximum number of components referenced at “top level” for any composite glyph.
	MaxComponentElements uint16
	// Maximum levels of recursion; 1 for simple components.
	MaxComponentDepth uint16
}

Maxp is a "maxp" table. This table establishes the memory requirements for this font.

func (*Maxp) CheckSum

func (m *Maxp) CheckSum() (checkSum uint32, err error)

CheckSum for this table.

func (*Maxp) Exists

func (m *Maxp) Exists() bool

Exists returns true if this is not nil.

func (*Maxp) Length

func (m *Maxp) Length() uint32

Length returns the size(byte) of this table.

func (*Maxp) Tag

func (m *Maxp) Tag() Tag

Tag is table name.

type Name

type Name struct {
	Format uint16
	// Number of name records.
	Count uint16
	// Offset to start of string storage (from start of table).
	StringOffset uint16
	// 	The name records.
	NameRecords []*NameRecord
	// Number of language-tag records.
	LangTagCount uint16
	// The language-tag records.
	LangTagRecords []*LangTagRecord
}

Name is a "name" table. The naming table allows multilingual strings to be associated with the OpenType™ font file.

func (*Name) CheckSum

func (n *Name) CheckSum() (checkSum uint32, err error)

CheckSum for this table.

func (*Name) Exists

func (n *Name) Exists() bool

Exists returns true if this is not nil.

func (*Name) Get

func (n *Name) Get(platformID PlatformID, encodingID EncodingID, languageID LanguageID, nameID NameID) (value string)

Get returns name value specified by Name Record keys.

func (*Name) Length

func (n *Name) Length() uint32

Length returns the size(byte) of this table.

func (*Name) Tag

func (n *Name) Tag() Tag

Tag is table name.

type NameID

type NameID uint16

NameID is a metadata name of a OpenType.

func (NameID) Name

func (n NameID) Name() string

Name returns the name of Name ID.

func (NameID) String

func (n NameID) String() string

type NameRecord

type NameRecord struct {
	// Platform ID.
	PlatformID PlatformID
	// Platform-specific encoding ID.
	EncodingID EncodingID
	// Language ID.
	LanguageID LanguageID
	// Name ID.
	NameID NameID
	// String length (in bytes).
	Length uint16
	// String offset from start of storage area (in bytes).
	Offset uint16
	// string value of the NameRecord.
	Value string
}

NameRecord contains platform specific metadata of the OpenType Font.

type OffsetTable

type OffsetTable struct {
	SfntVersion Tag
	// Number of tables.
	NumTables uint16
	// (Maximum power of 2 <= numTables) x 16.
	SearchRange uint16
	// Log2(maximum power of 2 <= numTables).
	EntrySelector uint16
	// NumTables x 16-searchRange.
	RangeShift uint16
}

OffsetTable is the first table of OpenType font file.

func (*OffsetTable) Length

func (ot *OffsetTable) Length() uint32

Length returns the size(byte) of this table.

type PlatformID

type PlatformID uint16

PlatformID is used to specify a particular character encoding.

func (PlatformID) Name

func (p PlatformID) Name() string

Name returns the name of Platform ID.

func (PlatformID) String

func (p PlatformID) String() string

type Prep

type Prep struct {
	Values []uint8
}

Prep is a "prep" table. The Control Value Program consists of a set of TrueType instructions that will be executed whenever the font or point size or transformation matrix change and before each glyph is interpreted.

func (*Prep) CheckSum

func (prep *Prep) CheckSum() (checkSum uint32, err error)

CheckSum for this table.

func (*Prep) Exists

func (prep *Prep) Exists() bool

Exists returns true if this is not nil.

func (*Prep) Length

func (prep *Prep) Length() uint32

Length returns the size(byte) of this table.

func (*Prep) Tag

func (prep *Prep) Tag() Tag

Tag is table name.

type Table

type Table interface {
	// Tag is table name.
	Tag() Tag
	// Length returns the size(byte) of this table.
	Length() uint32
	// CheckSum for this table.
	CheckSum() (uint32, error)
	// Exists returns true if this is not nil.
	Exists() bool
	// contains filtered or unexported methods
}

Table is a OpenType table.

type TableRecord

type TableRecord struct {
	Tag      Tag
	CheckSum uint32
	// Offset from beginning of TrueType font file.
	Offset uint32
	Length uint32
}

TableRecord is a OpenType table record.

type Tag

type Tag uint32

Tag is a array of four uint8s (length = 32 bits) used to identify a script, language system, feature, or baseline

func String2Tag

func String2Tag(s string) Tag

String2Tag creates Tag from string.

func (Tag) String

func (t Tag) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL