#![allow(clippy::unreadable_literal, clippy::doc_markdown)]
const WINANSI_ENCODING: [&str; 256] = [
".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", ".notdef", "space", "exclam", "quotedbl", "numbersign", "dollar", "percent", "ampersand", "quotesingle", "parenleft", "parenright", "asterisk", "plus", "comma", "hyphen", "period", "slash", "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "colon", "semicolon", "less", "equal", "greater", "question", "at", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "bracketleft", "backslash", "bracketright", "asciicircum", "underscore", "grave", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "braceleft", "bar", "braceright", "asciitilde", ".notdef", "Euro", ".notdef", "quotesinglbase", "florin", "quotedblbase", "ellipsis", "dagger", "daggerdbl", "circumflex", "perthousand", "Scaron", "guilsinglleft", "OE", ".notdef", "Zcaron", ".notdef", ".notdef", "quoteleft", "quoteright", "quotedblleft", "quotedblright", "bullet", "endash", "emdash", "tilde", "trademark", "scaron", "guilsinglright", "oe", ".notdef", "zcaron", "Ydieresis", "space", "exclamdown", "cent", "sterling", "currency", "yen", "brokenbar", "section", "dieresis", "copyright", "ordfeminine", "guillemotleft", "logicalnot", "hyphen", "registered", "macron", "degree", "plusminus", "twosuperior", "threesuperior", "acute", "mu", "paragraph", "periodcentered", "cedilla", "onesuperior", "ordmasculine", "guillemotright", "onequarter", "onehalf", "threequarters", "questiondown", "Agrave", "Aacute", "Acircumflex", "Atilde", "Adieresis", "Aring", "AE", "Ccedilla", "Egrave", "Eacute", "Ecircumflex", "Edieresis", "Igrave", "Iacute", "Icircumflex", "Idieresis", "Eth", "Ntilde", "Ograve", "Oacute", "Ocircumflex", "Otilde", "Odieresis", "multiply", "Oslash", "Ugrave", "Uacute", "Ucircumflex", "Udieresis", "Yacute", "Thorn", "germandbls", "agrave", "aacute", "acircumflex", "atilde", "adieresis", "aring", "ae", "ccedilla", "egrave", "eacute", "ecircumflex", "edieresis", "igrave", "iacute", "icircumflex", "idieresis", "eth", "ntilde", "ograve", "oacute", "ocircumflex", "otilde", "odieresis", "divide", "oslash", "ugrave", "uacute", "ucircumflex", "udieresis", "yacute", "thorn", "ydieresis", ];
const GLYPHS_HELVETICA: &[(&str, u16)] = &[
("A", 667),
("AE", 1000),
("Aacute", 667),
("Abreve", 667),
("Acircumflex", 667),
("Adieresis", 667),
("Agrave", 667),
("Amacron", 667),
("Aogonek", 667),
("Aring", 667),
("Atilde", 667),
("B", 667),
("C", 722),
("Cacute", 722),
("Ccaron", 722),
("Ccedilla", 722),
("D", 722),
("Dcaron", 722),
("Dcroat", 722),
("Delta", 612),
("E", 667),
("Eacute", 667),
("Ecaron", 667),
("Ecircumflex", 667),
("Edieresis", 667),
("Edotaccent", 667),
("Egrave", 667),
("Emacron", 667),
("Eogonek", 667),
("Eth", 722),
("Euro", 556),
("F", 611),
("G", 778),
("Gbreve", 778),
("Gcommaaccent", 778),
("H", 722),
("I", 278),
("Iacute", 278),
("Icircumflex", 278),
("Idieresis", 278),
("Idotaccent", 278),
("Igrave", 278),
("Imacron", 278),
("Iogonek", 278),
("J", 500),
("K", 667),
("Kcommaaccent", 667),
("L", 556),
("Lacute", 556),
("Lcaron", 556),
("Lcommaaccent", 556),
("Lslash", 556),
("M", 833),
("N", 722),
("Nacute", 722),
("Ncaron", 722),
("Ncommaaccent", 722),
("Ntilde", 722),
("O", 778),
("OE", 1000),
("Oacute", 778),
("Ocircumflex", 778),
("Odieresis", 778),
("Ograve", 778),
("Ohungarumlaut", 778),
("Omacron", 778),
("Oslash", 778),
("Otilde", 778),
("P", 667),
("Q", 778),
("R", 722),
("Racute", 722),
("Rcaron", 722),
("Rcommaaccent", 722),
("S", 667),
("Sacute", 667),
("Scaron", 667),
("Scedilla", 667),
("Scommaaccent", 667),
("T", 611),
("Tcaron", 611),
("Tcommaaccent", 611),
("Thorn", 667),
("U", 722),
("Uacute", 722),
("Ucircumflex", 722),
("Udieresis", 722),
("Ugrave", 722),
("Uhungarumlaut", 722),
("Umacron", 722),
("Uogonek", 722),
("Uring", 722),
("V", 667),
("W", 944),
("X", 667),
("Y", 667),
("Yacute", 667),
("Ydieresis", 667),
("Z", 611),
("Zacute", 611),
("Zcaron", 611),
("Zdotaccent", 611),
("a", 556),
("aacute", 556),
("abreve", 556),
("acircumflex", 556),
("acute", 333),
("adieresis", 556),
("ae", 889),
("agrave", 556),
("amacron", 556),
("ampersand", 667),
("aogonek", 556),
("aring", 556),
("asciicircum", 469),
("asciitilde", 584),
("asterisk", 389),
("at", 1015),
("atilde", 556),
("b", 556),
("backslash", 278),
("bar", 260),
("braceleft", 334),
("braceright", 334),
("bracketleft", 278),
("bracketright", 278),
("breve", 333),
("brokenbar", 260),
("bullet", 350),
("c", 500),
("cacute", 500),
("caron", 333),
("ccaron", 500),
("ccedilla", 500),
("cedilla", 333),
("cent", 556),
("circumflex", 333),
("colon", 278),
("comma", 278),
("commaaccent", 250),
("copyright", 737),
("currency", 556),
("d", 556),
("dagger", 556),
("daggerdbl", 556),
("dcaron", 643),
("dcroat", 556),
("degree", 400),
("dieresis", 333),
("divide", 584),
("dollar", 556),
("dotaccent", 333),
("dotlessi", 278),
("e", 556),
("eacute", 556),
("ecaron", 556),
("ecircumflex", 556),
("edieresis", 556),
("edotaccent", 556),
("egrave", 556),
("eight", 556),
("ellipsis", 1000),
("emacron", 556),
("emdash", 1000),
("endash", 556),
("eogonek", 556),
("equal", 584),
("eth", 556),
("exclam", 278),
("exclamdown", 333),
("f", 278),
("fi", 500),
("five", 556),
("fl", 500),
("florin", 556),
("four", 556),
("fraction", 167),
("g", 556),
("gbreve", 556),
("gcommaaccent", 556),
("germandbls", 611),
("grave", 333),
("greater", 584),
("greaterequal", 549),
("guillemotleft", 556),
("guillemotright", 556),
("guilsinglleft", 333),
("guilsinglright", 333),
("h", 556),
("hungarumlaut", 333),
("hyphen", 333),
("i", 222),
("iacute", 278),
("icircumflex", 278),
("idieresis", 278),
("igrave", 278),
("imacron", 278),
("iogonek", 222),
("j", 222),
("k", 500),
("kcommaaccent", 500),
("l", 222),
("lacute", 222),
("lcaron", 299),
("lcommaaccent", 222),
("less", 584),
("lessequal", 549),
("logicalnot", 584),
("lozenge", 471),
("lslash", 222),
("m", 833),
("macron", 333),
("minus", 584),
("mu", 556),
("multiply", 584),
("n", 556),
("nacute", 556),
("ncaron", 556),
("ncommaaccent", 556),
("nine", 556),
("notequal", 549),
("ntilde", 556),
("numbersign", 556),
("o", 556),
("oacute", 556),
("ocircumflex", 556),
("odieresis", 556),
("oe", 944),
("ogonek", 333),
("ograve", 556),
("ohungarumlaut", 556),
("omacron", 556),
("one", 556),
("onehalf", 834),
("onequarter", 834),
("onesuperior", 333),
("ordfeminine", 370),
("ordmasculine", 365),
("oslash", 611),
("otilde", 556),
("p", 556),
("paragraph", 537),
("parenleft", 333),
("parenright", 333),
("partialdiff", 476),
("percent", 889),
("period", 278),
("periodcentered", 278),
("perthousand", 1000),
("plus", 584),
("plusminus", 584),
("q", 556),
("question", 556),
("questiondown", 611),
("quotedbl", 355),
("quotedblbase", 333),
("quotedblleft", 333),
("quotedblright", 333),
("quoteleft", 222),
("quoteright", 222),
("quotesinglbase", 222),
("quotesingle", 191),
("r", 333),
("racute", 333),
("radical", 453),
("rcaron", 333),
("rcommaaccent", 333),
("registered", 737),
("ring", 333),
("s", 500),
("sacute", 500),
("scaron", 500),
("scedilla", 500),
("scommaaccent", 500),
("section", 556),
("semicolon", 278),
("seven", 556),
("six", 556),
("slash", 278),
("space", 278),
("sterling", 556),
("summation", 600),
("t", 278),
("tcaron", 317),
("tcommaaccent", 278),
("thorn", 556),
("three", 556),
("threequarters", 834),
("threesuperior", 333),
("tilde", 333),
("trademark", 1000),
("two", 556),
("twosuperior", 333),
("u", 556),
("uacute", 556),
("ucircumflex", 556),
("udieresis", 556),
("ugrave", 556),
("uhungarumlaut", 556),
("umacron", 556),
("underscore", 556),
("uogonek", 556),
("uring", 556),
("v", 500),
("w", 722),
("x", 500),
("y", 500),
("yacute", 500),
("ydieresis", 500),
("yen", 556),
("z", 500),
("zacute", 500),
("zcaron", 500),
("zdotaccent", 500),
("zero", 556),
];
const GLYPHS_HELVETICABOLD: &[(&str, u16)] = &[
("A", 722),
("AE", 1000),
("Aacute", 722),
("Abreve", 722),
("Acircumflex", 722),
("Adieresis", 722),
("Agrave", 722),
("Amacron", 722),
("Aogonek", 722),
("Aring", 722),
("Atilde", 722),
("B", 722),
("C", 722),
("Cacute", 722),
("Ccaron", 722),
("Ccedilla", 722),
("D", 722),
("Dcaron", 722),
("Dcroat", 722),
("Delta", 612),
("E", 667),
("Eacute", 667),
("Ecaron", 667),
("Ecircumflex", 667),
("Edieresis", 667),
("Edotaccent", 667),
("Egrave", 667),
("Emacron", 667),
("Eogonek", 667),
("Eth", 722),
("Euro", 556),
("F", 611),
("G", 778),
("Gbreve", 778),
("Gcommaaccent", 778),
("H", 722),
("I", 278),
("Iacute", 278),
("Icircumflex", 278),
("Idieresis", 278),
("Idotaccent", 278),
("Igrave", 278),
("Imacron", 278),
("Iogonek", 278),
("J", 556),
("K", 722),
("Kcommaaccent", 722),
("L", 611),
("Lacute", 611),
("Lcaron", 611),
("Lcommaaccent", 611),
("Lslash", 611),
("M", 833),
("N", 722),
("Nacute", 722),
("Ncaron", 722),
("Ncommaaccent", 722),
("Ntilde", 722),
("O", 778),
("OE", 1000),
("Oacute", 778),
("Ocircumflex", 778),
("Odieresis", 778),
("Ograve", 778),
("Ohungarumlaut", 778),
("Omacron", 778),
("Oslash", 778),
("Otilde", 778),
("P", 667),
("Q", 778),
("R", 722),
("Racute", 722),
("Rcaron", 722),
("Rcommaaccent", 722),
("S", 667),
("Sacute", 667),
("Scaron", 667),
("Scedilla", 667),
("Scommaaccent", 667),
("T", 611),
("Tcaron", 611),
("Tcommaaccent", 611),
("Thorn", 667),
("U", 722),
("Uacute", 722),
("Ucircumflex", 722),
("Udieresis", 722),
("Ugrave", 722),
("Uhungarumlaut", 722),
("Umacron", 722),
("Uogonek", 722),
("Uring", 722),
("V", 667),
("W", 944),
("X", 667),
("Y", 667),
("Yacute", 667),
("Ydieresis", 667),
("Z", 611),
("Zacute", 611),
("Zcaron", 611),
("Zdotaccent", 611),
("a", 556),
("aacute", 556),
("abreve", 556),
("acircumflex", 556),
("acute", 333),
("adieresis", 556),
("ae", 889),
("agrave", 556),
("amacron", 556),
("ampersand", 722),
("aogonek", 556),
("aring", 556),
("asciicircum", 584),
("asciitilde", 584),
("asterisk", 389),
("at", 975),
("atilde", 556),
("b", 611),
("backslash", 278),
("bar", 280),
("braceleft", 389),
("braceright", 389),
("bracketleft", 333),
("bracketright", 333),
("breve", 333),
("brokenbar", 280),
("bullet", 350),
("c", 556),
("cacute", 556),
("caron", 333),
("ccaron", 556),
("ccedilla", 556),
("cedilla", 333),
("cent", 556),
("circumflex", 333),
("colon", 333),
("comma", 278),
("commaaccent", 250),
("copyright", 737),
("currency", 556),
("d", 611),
("dagger", 556),
("daggerdbl", 556),
("dcaron", 743),
("dcroat", 611),
("degree", 400),
("dieresis", 333),
("divide", 584),
("dollar", 556),
("dotaccent", 333),
("dotlessi", 278),
("e", 556),
("eacute", 556),
("ecaron", 556),
("ecircumflex", 556),
("edieresis", 556),
("edotaccent", 556),
("egrave", 556),
("eight", 556),
("ellipsis", 1000),
("emacron", 556),
("emdash", 1000),
("endash", 556),
("eogonek", 556),
("equal", 584),
("eth", 611),
("exclam", 333),
("exclamdown", 333),
("f", 333),
("fi", 611),
("five", 556),
("fl", 611),
("florin", 556),
("four", 556),
("fraction", 167),
("g", 611),
("gbreve", 611),
("gcommaaccent", 611),
("germandbls", 611),
("grave", 333),
("greater", 584),
("greaterequal", 549),
("guillemotleft", 556),
("guillemotright", 556),
("guilsinglleft", 333),
("guilsinglright", 333),
("h", 611),
("hungarumlaut", 333),
("hyphen", 333),
("i", 278),
("iacute", 278),
("icircumflex", 278),
("idieresis", 278),
("igrave", 278),
("imacron", 278),
("iogonek", 278),
("j", 278),
("k", 556),
("kcommaaccent", 556),
("l", 278),
("lacute", 278),
("lcaron", 400),
("lcommaaccent", 278),
("less", 584),
("lessequal", 549),
("logicalnot", 584),
("lozenge", 494),
("lslash", 278),
("m", 889),
("macron", 333),
("minus", 584),
("mu", 611),
("multiply", 584),
("n", 611),
("nacute", 611),
("ncaron", 611),
("ncommaaccent", 611),
("nine", 556),
("notequal", 549),
("ntilde", 611),
("numbersign", 556),
("o", 611),
("oacute", 611),
("ocircumflex", 611),
("odieresis", 611),
("oe", 944),
("ogonek", 333),
("ograve", 611),
("ohungarumlaut", 611),
("omacron", 611),
("one", 556),
("onehalf", 834),
("onequarter", 834),
("onesuperior", 333),
("ordfeminine", 370),
("ordmasculine", 365),
("oslash", 611),
("otilde", 611),
("p", 611),
("paragraph", 556),
("parenleft", 333),
("parenright", 333),
("partialdiff", 494),
("percent", 889),
("period", 278),
("periodcentered", 278),
("perthousand", 1000),
("plus", 584),
("plusminus", 584),
("q", 611),
("question", 611),
("questiondown", 611),
("quotedbl", 474),
("quotedblbase", 500),
("quotedblleft", 500),
("quotedblright", 500),
("quoteleft", 278),
("quoteright", 278),
("quotesinglbase", 278),
("quotesingle", 238),
("r", 389),
("racute", 389),
("radical", 549),
("rcaron", 389),
("rcommaaccent", 389),
("registered", 737),
("ring", 333),
("s", 556),
("sacute", 556),
("scaron", 556),
("scedilla", 556),
("scommaaccent", 556),
("section", 556),
("semicolon", 333),
("seven", 556),
("six", 556),
("slash", 278),
("space", 278),
("sterling", 556),
("summation", 600),
("t", 333),
("tcaron", 389),
("tcommaaccent", 333),
("thorn", 611),
("three", 556),
("threequarters", 834),
("threesuperior", 333),
("tilde", 333),
("trademark", 1000),
("two", 556),
("twosuperior", 333),
("u", 611),
("uacute", 611),
("ucircumflex", 611),
("udieresis", 611),
("ugrave", 611),
("uhungarumlaut", 611),
("umacron", 611),
("underscore", 556),
("uogonek", 611),
("uring", 611),
("v", 556),
("w", 778),
("x", 556),
("y", 556),
("yacute", 556),
("ydieresis", 556),
("yen", 556),
("z", 500),
("zacute", 500),
("zcaron", 500),
("zdotaccent", 500),
("zero", 556),
];
const GLYPHS_HELVETICAOBLIQUE: &[(&str, u16)] = &[
("A", 667),
("AE", 1000),
("Aacute", 667),
("Abreve", 667),
("Acircumflex", 667),
("Adieresis", 667),
("Agrave", 667),
("Amacron", 667),
("Aogonek", 667),
("Aring", 667),
("Atilde", 667),
("B", 667),
("C", 722),
("Cacute", 722),
("Ccaron", 722),
("Ccedilla", 722),
("D", 722),
("Dcaron", 722),
("Dcroat", 722),
("Delta", 612),
("E", 667),
("Eacute", 667),
("Ecaron", 667),
("Ecircumflex", 667),
("Edieresis", 667),
("Edotaccent", 667),
("Egrave", 667),
("Emacron", 667),
("Eogonek", 667),
("Eth", 722),
("Euro", 556),
("F", 611),
("G", 778),
("Gbreve", 778),
("Gcommaaccent", 778),
("H", 722),
("I", 278),
("Iacute", 278),
("Icircumflex", 278),
("Idieresis", 278),
("Idotaccent", 278),
("Igrave", 278),
("Imacron", 278),
("Iogonek", 278),
("J", 500),
("K", 667),
("Kcommaaccent", 667),
("L", 556),
("Lacute", 556),
("Lcaron", 556),
("Lcommaaccent", 556),
("Lslash", 556),
("M", 833),
("N", 722),
("Nacute", 722),
("Ncaron", 722),
("Ncommaaccent", 722),
("Ntilde", 722),
("O", 778),
("OE", 1000),
("Oacute", 778),
("Ocircumflex", 778),
("Odieresis", 778),
("Ograve", 778),
("Ohungarumlaut", 778),
("Omacron", 778),
("Oslash", 778),
("Otilde", 778),
("P", 667),
("Q", 778),
("R", 722),
("Racute", 722),
("Rcaron", 722),
("Rcommaaccent", 722),
("S", 667),
("Sacute", 667),
("Scaron", 667),
("Scedilla", 667),
("Scommaaccent", 667),
("T", 611),
("Tcaron", 611),
("Tcommaaccent", 611),
("Thorn", 667),
("U", 722),
("Uacute", 722),
("Ucircumflex", 722),
("Udieresis", 722),
("Ugrave", 722),
("Uhungarumlaut", 722),
("Umacron", 722),
("Uogonek", 722),
("Uring", 722),
("V", 667),
("W", 944),
("X", 667),
("Y", 667),
("Yacute", 667),
("Ydieresis", 667),
("Z", 611),
("Zacute", 611),
("Zcaron", 611),
("Zdotaccent", 611),
("a", 556),
("aacute", 556),
("abreve", 556),
("acircumflex", 556),
("acute", 333),
("adieresis", 556),
("ae", 889),
("agrave", 556),
("amacron", 556),
("ampersand", 667),
("aogonek", 556),
("aring", 556),
("asciicircum", 469),
("asciitilde", 584),
("asterisk", 389),
("at", 1015),
("atilde", 556),
("b", 556),
("backslash", 278),
("bar", 260),
("braceleft", 334),
("braceright", 334),
("bracketleft", 278),
("bracketright", 278),
("breve", 333),
("brokenbar", 260),
("bullet", 350),
("c", 500),
("cacute", 500),
("caron", 333),
("ccaron", 500),
("ccedilla", 500),
("cedilla", 333),
("cent", 556),
("circumflex", 333),
("colon", 278),
("comma", 278),
("commaaccent", 250),
("copyright", 737),
("currency", 556),
("d", 556),
("dagger", 556),
("daggerdbl", 556),
("dcaron", 643),
("dcroat", 556),
("degree", 400),
("dieresis", 333),
("divide", 584),
("dollar", 556),
("dotaccent", 333),
("dotlessi", 278),
("e", 556),
("eacute", 556),
("ecaron", 556),
("ecircumflex", 556),
("edieresis", 556),
("edotaccent", 556),
("egrave", 556),
("eight", 556),
("ellipsis", 1000),
("emacron", 556),
("emdash", 1000),
("endash", 556),
("eogonek", 556),
("equal", 584),
("eth", 556),
("exclam", 278),
("exclamdown", 333),
("f", 278),
("fi", 500),
("five", 556),
("fl", 500),
("florin", 556),
("four", 556),
("fraction", 167),
("g", 556),
("gbreve", 556),
("gcommaaccent", 556),
("germandbls", 611),
("grave", 333),
("greater", 584),
("greaterequal", 549),
("guillemotleft", 556),
("guillemotright", 556),
("guilsinglleft", 333),
("guilsinglright", 333),
("h", 556),
("hungarumlaut", 333),
("hyphen", 333),
("i", 222),
("iacute", 278),
("icircumflex", 278),
("idieresis", 278),
("igrave", 278),
("imacron", 278),
("iogonek", 222),
("j", 222),
("k", 500),
("kcommaaccent", 500),
("l", 222),
("lacute", 222),
("lcaron", 299),
("lcommaaccent", 222),
("less", 584),
("lessequal", 549),
("logicalnot", 584),
("lozenge", 471),
("lslash", 222),
("m", 833),
("macron", 333),
("minus", 584),
("mu", 556),
("multiply", 584),
("n", 556),
("nacute", 556),
("ncaron", 556),
("ncommaaccent", 556),
("nine", 556),
("notequal", 549),
("ntilde", 556),
("numbersign", 556),
("o", 556),
("oacute", 556),
("ocircumflex", 556),
("odieresis", 556),
("oe", 944),
("ogonek", 333),
("ograve", 556),
("ohungarumlaut", 556),
("omacron", 556),
("one", 556),
("onehalf", 834),
("onequarter", 834),
("onesuperior", 333),
("ordfeminine", 370),
("ordmasculine", 365),
("oslash", 611),
("otilde", 556),
("p", 556),
("paragraph", 537),
("parenleft", 333),
("parenright", 333),
("partialdiff", 476),
("percent", 889),
("period", 278),
("periodcentered", 278),
("perthousand", 1000),
("plus", 584),
("plusminus", 584),
("q", 556),
("question", 556),
("questiondown", 611),
("quotedbl", 355),
("quotedblbase", 333),
("quotedblleft", 333),
("quotedblright", 333),
("quoteleft", 222),
("quoteright", 222),
("quotesinglbase", 222),
("quotesingle", 191),
("r", 333),
("racute", 333),
("radical", 453),
("rcaron", 333),
("rcommaaccent", 333),
("registered", 737),
("ring", 333),
("s", 500),
("sacute", 500),
("scaron", 500),
("scedilla", 500),
("scommaaccent", 500),
("section", 556),
("semicolon", 278),
("seven", 556),
("six", 556),
("slash", 278),
("space", 278),
("sterling", 556),
("summation", 600),
("t", 278),
("tcaron", 317),
("tcommaaccent", 278),
("thorn", 556),
("three", 556),
("threequarters", 834),
("threesuperior", 333),
("tilde", 333),
("trademark", 1000),
("two", 556),
("twosuperior", 333),
("u", 556),
("uacute", 556),
("ucircumflex", 556),
("udieresis", 556),
("ugrave", 556),
("uhungarumlaut", 556),
("umacron", 556),
("underscore", 556),
("uogonek", 556),
("uring", 556),
("v", 500),
("w", 722),
("x", 500),
("y", 500),
("yacute", 500),
("ydieresis", 500),
("yen", 556),
("z", 500),
("zacute", 500),
("zcaron", 500),
("zdotaccent", 500),
("zero", 556),
];
const GLYPHS_HELVETICABOLDOBLIQUE: &[(&str, u16)] = &[
("A", 722),
("AE", 1000),
("Aacute", 722),
("Abreve", 722),
("Acircumflex", 722),
("Adieresis", 722),
("Agrave", 722),
("Amacron", 722),
("Aogonek", 722),
("Aring", 722),
("Atilde", 722),
("B", 722),
("C", 722),
("Cacute", 722),
("Ccaron", 722),
("Ccedilla", 722),
("D", 722),
("Dcaron", 722),
("Dcroat", 722),
("Delta", 612),
("E", 667),
("Eacute", 667),
("Ecaron", 667),
("Ecircumflex", 667),
("Edieresis", 667),
("Edotaccent", 667),
("Egrave", 667),
("Emacron", 667),
("Eogonek", 667),
("Eth", 722),
("Euro", 556),
("F", 611),
("G", 778),
("Gbreve", 778),
("Gcommaaccent", 778),
("H", 722),
("I", 278),
("Iacute", 278),
("Icircumflex", 278),
("Idieresis", 278),
("Idotaccent", 278),
("Igrave", 278),
("Imacron", 278),
("Iogonek", 278),
("J", 556),
("K", 722),
("Kcommaaccent", 722),
("L", 611),
("Lacute", 611),
("Lcaron", 611),
("Lcommaaccent", 611),
("Lslash", 611),
("M", 833),
("N", 722),
("Nacute", 722),
("Ncaron", 722),
("Ncommaaccent", 722),
("Ntilde", 722),
("O", 778),
("OE", 1000),
("Oacute", 778),
("Ocircumflex", 778),
("Odieresis", 778),
("Ograve", 778),
("Ohungarumlaut", 778),
("Omacron", 778),
("Oslash", 778),
("Otilde", 778),
("P", 667),
("Q", 778),
("R", 722),
("Racute", 722),
("Rcaron", 722),
("Rcommaaccent", 722),
("S", 667),
("Sacute", 667),
("Scaron", 667),
("Scedilla", 667),
("Scommaaccent", 667),
("T", 611),
("Tcaron", 611),
("Tcommaaccent", 611),
("Thorn", 667),
("U", 722),
("Uacute", 722),
("Ucircumflex", 722),
("Udieresis", 722),
("Ugrave", 722),
("Uhungarumlaut", 722),
("Umacron", 722),
("Uogonek", 722),
("Uring", 722),
("V", 667),
("W", 944),
("X", 667),
("Y", 667),
("Yacute", 667),
("Ydieresis", 667),
("Z", 611),
("Zacute", 611),
("Zcaron", 611),
("Zdotaccent", 611),
("a", 556),
("aacute", 556),
("abreve", 556),
("acircumflex", 556),
("acute", 333),
("adieresis", 556),
("ae", 889),
("agrave", 556),
("amacron", 556),
("ampersand", 722),
("aogonek", 556),
("aring", 556),
("asciicircum", 584),
("asciitilde", 584),
("asterisk", 389),
("at", 975),
("atilde", 556),
("b", 611),
("backslash", 278),
("bar", 280),
("braceleft", 389),
("braceright", 389),
("bracketleft", 333),
("bracketright", 333),
("breve", 333),
("brokenbar", 280),
("bullet", 350),
("c", 556),
("cacute", 556),
("caron", 333),
("ccaron", 556),
("ccedilla", 556),
("cedilla", 333),
("cent", 556),
("circumflex", 333),
("colon", 333),
("comma", 278),
("commaaccent", 250),
("copyright", 737),
("currency", 556),
("d", 611),
("dagger", 556),
("daggerdbl", 556),
("dcaron", 743),
("dcroat", 611),
("degree", 400),
("dieresis", 333),
("divide", 584),
("dollar", 556),
("dotaccent", 333),
("dotlessi", 278),
("e", 556),
("eacute", 556),
("ecaron", 556),
("ecircumflex", 556),
("edieresis", 556),
("edotaccent", 556),
("egrave", 556),
("eight", 556),
("ellipsis", 1000),
("emacron", 556),
("emdash", 1000),
("endash", 556),
("eogonek", 556),
("equal", 584),
("eth", 611),
("exclam", 333),
("exclamdown", 333),
("f", 333),
("fi", 611),
("five", 556),
("fl", 611),
("florin", 556),
("four", 556),
("fraction", 167),
("g", 611),
("gbreve", 611),
("gcommaaccent", 611),
("germandbls", 611),
("grave", 333),
("greater", 584),
("greaterequal", 549),
("guillemotleft", 556),
("guillemotright", 556),
("guilsinglleft", 333),
("guilsinglright", 333),
("h", 611),
("hungarumlaut", 333),
("hyphen", 333),
("i", 278),
("iacute", 278),
("icircumflex", 278),
("idieresis", 278),
("igrave", 278),
("imacron", 278),
("iogonek", 278),
("j", 278),
("k", 556),
("kcommaaccent", 556),
("l", 278),
("lacute", 278),
("lcaron", 400),
("lcommaaccent", 278),
("less", 584),
("lessequal", 549),
("logicalnot", 584),
("lozenge", 494),
("lslash", 278),
("m", 889),
("macron", 333),
("minus", 584),
("mu", 611),
("multiply", 584),
("n", 611),
("nacute", 611),
("ncaron", 611),
("ncommaaccent", 611),
("nine", 556),
("notequal", 549),
("ntilde", 611),
("numbersign", 556),
("o", 611),
("oacute", 611),
("ocircumflex", 611),
("odieresis", 611),
("oe", 944),
("ogonek", 333),
("ograve", 611),
("ohungarumlaut", 611),
("omacron", 611),
("one", 556),
("onehalf", 834),
("onequarter", 834),
("onesuperior", 333),
("ordfeminine", 370),
("ordmasculine", 365),
("oslash", 611),
("otilde", 611),
("p", 611),
("paragraph", 556),
("parenleft", 333),
("parenright", 333),
("partialdiff", 494),
("percent", 889),
("period", 278),
("periodcentered", 278),
("perthousand", 1000),
("plus", 584),
("plusminus", 584),
("q", 611),
("question", 611),
("questiondown", 611),
("quotedbl", 474),
("quotedblbase", 500),
("quotedblleft", 500),
("quotedblright", 500),
("quoteleft", 278),
("quoteright", 278),
("quotesinglbase", 278),
("quotesingle", 238),
("r", 389),
("racute", 389),
("radical", 549),
("rcaron", 389),
("rcommaaccent", 389),
("registered", 737),
("ring", 333),
("s", 556),
("sacute", 556),
("scaron", 556),
("scedilla", 556),
("scommaaccent", 556),
("section", 556),
("semicolon", 333),
("seven", 556),
("six", 556),
("slash", 278),
("space", 278),
("sterling", 556),
("summation", 600),
("t", 333),
("tcaron", 389),
("tcommaaccent", 333),
("thorn", 611),
("three", 556),
("threequarters", 834),
("threesuperior", 333),
("tilde", 333),
("trademark", 1000),
("two", 556),
("twosuperior", 333),
("u", 611),
("uacute", 611),
("ucircumflex", 611),
("udieresis", 611),
("ugrave", 611),
("uhungarumlaut", 611),
("umacron", 611),
("underscore", 556),
("uogonek", 611),
("uring", 611),
("v", 556),
("w", 778),
("x", 556),
("y", 556),
("yacute", 556),
("ydieresis", 556),
("yen", 556),
("z", 500),
("zacute", 500),
("zcaron", 500),
("zdotaccent", 500),
("zero", 556),
];
const GLYPHS_TIMESROMAN: &[(&str, u16)] = &[
("A", 722),
("AE", 889),
("Aacute", 722),
("Abreve", 722),
("Acircumflex", 722),
("Adieresis", 722),
("Agrave", 722),
("Amacron", 722),
("Aogonek", 722),
("Aring", 722),
("Atilde", 722),
("B", 667),
("C", 667),
("Cacute", 667),
("Ccaron", 667),
("Ccedilla", 667),
("D", 722),
("Dcaron", 722),
("Dcroat", 722),
("Delta", 612),
("E", 611),
("Eacute", 611),
("Ecaron", 611),
("Ecircumflex", 611),
("Edieresis", 611),
("Edotaccent", 611),
("Egrave", 611),
("Emacron", 611),
("Eogonek", 611),
("Eth", 722),
("Euro", 500),
("F", 556),
("G", 722),
("Gbreve", 722),
("Gcommaaccent", 722),
("H", 722),
("I", 333),
("Iacute", 333),
("Icircumflex", 333),
("Idieresis", 333),
("Idotaccent", 333),
("Igrave", 333),
("Imacron", 333),
("Iogonek", 333),
("J", 389),
("K", 722),
("Kcommaaccent", 722),
("L", 611),
("Lacute", 611),
("Lcaron", 611),
("Lcommaaccent", 611),
("Lslash", 611),
("M", 889),
("N", 722),
("Nacute", 722),
("Ncaron", 722),
("Ncommaaccent", 722),
("Ntilde", 722),
("O", 722),
("OE", 889),
("Oacute", 722),
("Ocircumflex", 722),
("Odieresis", 722),
("Ograve", 722),
("Ohungarumlaut", 722),
("Omacron", 722),
("Oslash", 722),
("Otilde", 722),
("P", 556),
("Q", 722),
("R", 667),
("Racute", 667),
("Rcaron", 667),
("Rcommaaccent", 667),
("S", 556),
("Sacute", 556),
("Scaron", 556),
("Scedilla", 556),
("Scommaaccent", 556),
("T", 611),
("Tcaron", 611),
("Tcommaaccent", 611),
("Thorn", 556),
("U", 722),
("Uacute", 722),
("Ucircumflex", 722),
("Udieresis", 722),
("Ugrave", 722),
("Uhungarumlaut", 722),
("Umacron", 722),
("Uogonek", 722),
("Uring", 722),
("V", 722),
("W", 944),
("X", 722),
("Y", 722),
("Yacute", 722),
("Ydieresis", 722),
("Z", 611),
("Zacute", 611),
("Zcaron", 611),
("Zdotaccent", 611),
("a", 444),
("aacute", 444),
("abreve", 444),
("acircumflex", 444),
("acute", 333),
("adieresis", 444),
("ae", 667),
("agrave", 444),
("amacron", 444),
("ampersand", 778),
("aogonek", 444),
("aring", 444),
("asciicircum", 469),
("asciitilde", 541),
("asterisk", 500),
("at", 921),
("atilde", 444),
("b", 500),
("backslash", 278),
("bar", 200),
("braceleft", 480),
("braceright", 480),
("bracketleft", 333),
("bracketright", 333),
("breve", 333),
("brokenbar", 200),
("bullet", 350),
("c", 444),
("cacute", 444),
("caron", 333),
("ccaron", 444),
("ccedilla", 444),
("cedilla", 333),
("cent", 500),
("circumflex", 333),
("colon", 278),
("comma", 250),
("commaaccent", 250),
("copyright", 760),
("currency", 500),
("d", 500),
("dagger", 500),
("daggerdbl", 500),
("dcaron", 588),
("dcroat", 500),
("degree", 400),
("dieresis", 333),
("divide", 564),
("dollar", 500),
("dotaccent", 333),
("dotlessi", 278),
("e", 444),
("eacute", 444),
("ecaron", 444),
("ecircumflex", 444),
("edieresis", 444),
("edotaccent", 444),
("egrave", 444),
("eight", 500),
("ellipsis", 1000),
("emacron", 444),
("emdash", 1000),
("endash", 500),
("eogonek", 444),
("equal", 564),
("eth", 500),
("exclam", 333),
("exclamdown", 333),
("f", 333),
("fi", 556),
("five", 500),
("fl", 556),
("florin", 500),
("four", 500),
("fraction", 167),
("g", 500),
("gbreve", 500),
("gcommaaccent", 500),
("germandbls", 500),
("grave", 333),
("greater", 564),
("greaterequal", 549),
("guillemotleft", 500),
("guillemotright", 500),
("guilsinglleft", 333),
("guilsinglright", 333),
("h", 500),
("hungarumlaut", 333),
("hyphen", 333),
("i", 278),
("iacute", 278),
("icircumflex", 278),
("idieresis", 278),
("igrave", 278),
("imacron", 278),
("iogonek", 278),
("j", 278),
("k", 500),
("kcommaaccent", 500),
("l", 278),
("lacute", 278),
("lcaron", 344),
("lcommaaccent", 278),
("less", 564),
("lessequal", 549),
("logicalnot", 564),
("lozenge", 471),
("lslash", 278),
("m", 778),
("macron", 333),
("minus", 564),
("mu", 500),
("multiply", 564),
("n", 500),
("nacute", 500),
("ncaron", 500),
("ncommaaccent", 500),
("nine", 500),
("notequal", 549),
("ntilde", 500),
("numbersign", 500),
("o", 500),
("oacute", 500),
("ocircumflex", 500),
("odieresis", 500),
("oe", 722),
("ogonek", 333),
("ograve", 500),
("ohungarumlaut", 500),
("omacron", 500),
("one", 500),
("onehalf", 750),
("onequarter", 750),
("onesuperior", 300),
("ordfeminine", 276),
("ordmasculine", 310),
("oslash", 500),
("otilde", 500),
("p", 500),
("paragraph", 453),
("parenleft", 333),
("parenright", 333),
("partialdiff", 476),
("percent", 833),
("period", 250),
("periodcentered", 250),
("perthousand", 1000),
("plus", 564),
("plusminus", 564),
("q", 500),
("question", 444),
("questiondown", 444),
("quotedbl", 408),
("quotedblbase", 444),
("quotedblleft", 444),
("quotedblright", 444),
("quoteleft", 333),
("quoteright", 333),
("quotesinglbase", 333),
("quotesingle", 180),
("r", 333),
("racute", 333),
("radical", 453),
("rcaron", 333),
("rcommaaccent", 333),
("registered", 760),
("ring", 333),
("s", 389),
("sacute", 389),
("scaron", 389),
("scedilla", 389),
("scommaaccent", 389),
("section", 500),
("semicolon", 278),
("seven", 500),
("six", 500),
("slash", 278),
("space", 250),
("sterling", 500),
("summation", 600),
("t", 278),
("tcaron", 326),
("tcommaaccent", 278),
("thorn", 500),
("three", 500),
("threequarters", 750),
("threesuperior", 300),
("tilde", 333),
("trademark", 980),
("two", 500),
("twosuperior", 300),
("u", 500),
("uacute", 500),
("ucircumflex", 500),
("udieresis", 500),
("ugrave", 500),
("uhungarumlaut", 500),
("umacron", 500),
("underscore", 500),
("uogonek", 500),
("uring", 500),
("v", 500),
("w", 722),
("x", 500),
("y", 500),
("yacute", 500),
("ydieresis", 500),
("yen", 500),
("z", 444),
("zacute", 444),
("zcaron", 444),
("zdotaccent", 444),
("zero", 500),
];
const GLYPHS_TIMESBOLD: &[(&str, u16)] = &[
("A", 722),
("AE", 1000),
("Aacute", 722),
("Abreve", 722),
("Acircumflex", 722),
("Adieresis", 722),
("Agrave", 722),
("Amacron", 722),
("Aogonek", 722),
("Aring", 722),
("Atilde", 722),
("B", 667),
("C", 722),
("Cacute", 722),
("Ccaron", 722),
("Ccedilla", 722),
("D", 722),
("Dcaron", 722),
("Dcroat", 722),
("Delta", 612),
("E", 667),
("Eacute", 667),
("Ecaron", 667),
("Ecircumflex", 667),
("Edieresis", 667),
("Edotaccent", 667),
("Egrave", 667),
("Emacron", 667),
("Eogonek", 667),
("Eth", 722),
("Euro", 500),
("F", 611),
("G", 778),
("Gbreve", 778),
("Gcommaaccent", 778),
("H", 778),
("I", 389),
("Iacute", 389),
("Icircumflex", 389),
("Idieresis", 389),
("Idotaccent", 389),
("Igrave", 389),
("Imacron", 389),
("Iogonek", 389),
("J", 500),
("K", 778),
("Kcommaaccent", 778),
("L", 667),
("Lacute", 667),
("Lcaron", 667),
("Lcommaaccent", 667),
("Lslash", 667),
("M", 944),
("N", 722),
("Nacute", 722),
("Ncaron", 722),
("Ncommaaccent", 722),
("Ntilde", 722),
("O", 778),
("OE", 1000),
("Oacute", 778),
("Ocircumflex", 778),
("Odieresis", 778),
("Ograve", 778),
("Ohungarumlaut", 778),
("Omacron", 778),
("Oslash", 778),
("Otilde", 778),
("P", 611),
("Q", 778),
("R", 722),
("Racute", 722),
("Rcaron", 722),
("Rcommaaccent", 722),
("S", 556),
("Sacute", 556),
("Scaron", 556),
("Scedilla", 556),
("Scommaaccent", 556),
("T", 667),
("Tcaron", 667),
("Tcommaaccent", 667),
("Thorn", 611),
("U", 722),
("Uacute", 722),
("Ucircumflex", 722),
("Udieresis", 722),
("Ugrave", 722),
("Uhungarumlaut", 722),
("Umacron", 722),
("Uogonek", 722),
("Uring", 722),
("V", 722),
("W", 1000),
("X", 722),
("Y", 722),
("Yacute", 722),
("Ydieresis", 722),
("Z", 667),
("Zacute", 667),
("Zcaron", 667),
("Zdotaccent", 667),
("a", 500),
("aacute", 500),
("abreve", 500),
("acircumflex", 500),
("acute", 333),
("adieresis", 500),
("ae", 722),
("agrave", 500),
("amacron", 500),
("ampersand", 833),
("aogonek", 500),
("aring", 500),
("asciicircum", 581),
("asciitilde", 520),
("asterisk", 500),
("at", 930),
("atilde", 500),
("b", 556),
("backslash", 278),
("bar", 220),
("braceleft", 394),
("braceright", 394),
("bracketleft", 333),
("bracketright", 333),
("breve", 333),
("brokenbar", 220),
("bullet", 350),
("c", 444),
("cacute", 444),
("caron", 333),
("ccaron", 444),
("ccedilla", 444),
("cedilla", 333),
("cent", 500),
("circumflex", 333),
("colon", 333),
("comma", 250),
("commaaccent", 250),
("copyright", 747),
("currency", 500),
("d", 556),
("dagger", 500),
("daggerdbl", 500),
("dcaron", 672),
("dcroat", 556),
("degree", 400),
("dieresis", 333),
("divide", 570),
("dollar", 500),
("dotaccent", 333),
("dotlessi", 278),
("e", 444),
("eacute", 444),
("ecaron", 444),
("ecircumflex", 444),
("edieresis", 444),
("edotaccent", 444),
("egrave", 444),
("eight", 500),
("ellipsis", 1000),
("emacron", 444),
("emdash", 1000),
("endash", 500),
("eogonek", 444),
("equal", 570),
("eth", 500),
("exclam", 333),
("exclamdown", 333),
("f", 333),
("fi", 556),
("five", 500),
("fl", 556),
("florin", 500),
("four", 500),
("fraction", 167),
("g", 500),
("gbreve", 500),
("gcommaaccent", 500),
("germandbls", 556),
("grave", 333),
("greater", 570),
("greaterequal", 549),
("guillemotleft", 500),
("guillemotright", 500),
("guilsinglleft", 333),
("guilsinglright", 333),
("h", 556),
("hungarumlaut", 333),
("hyphen", 333),
("i", 278),
("iacute", 278),
("icircumflex", 278),
("idieresis", 278),
("igrave", 278),
("imacron", 278),
("iogonek", 278),
("j", 333),
("k", 556),
("kcommaaccent", 556),
("l", 278),
("lacute", 278),
("lcaron", 394),
("lcommaaccent", 278),
("less", 570),
("lessequal", 549),
("logicalnot", 570),
("lozenge", 494),
("lslash", 278),
("m", 833),
("macron", 333),
("minus", 570),
("mu", 556),
("multiply", 570),
("n", 556),
("nacute", 556),
("ncaron", 556),
("ncommaaccent", 556),
("nine", 500),
("notequal", 549),
("ntilde", 556),
("numbersign", 500),
("o", 500),
("oacute", 500),
("ocircumflex", 500),
("odieresis", 500),
("oe", 722),
("ogonek", 333),
("ograve", 500),
("ohungarumlaut", 500),
("omacron", 500),
("one", 500),
("onehalf", 750),
("onequarter", 750),
("onesuperior", 300),
("ordfeminine", 300),
("ordmasculine", 330),
("oslash", 500),
("otilde", 500),
("p", 556),
("paragraph", 540),
("parenleft", 333),
("parenright", 333),
("partialdiff", 494),
("percent", 1000),
("period", 250),
("periodcentered", 250),
("perthousand", 1000),
("plus", 570),
("plusminus", 570),
("q", 556),
("question", 500),
("questiondown", 500),
("quotedbl", 555),
("quotedblbase", 500),
("quotedblleft", 500),
("quotedblright", 500),
("quoteleft", 333),
("quoteright", 333),
("quotesinglbase", 333),
("quotesingle", 278),
("r", 444),
("racute", 444),
("radical", 549),
("rcaron", 444),
("rcommaaccent", 444),
("registered", 747),
("ring", 333),
("s", 389),
("sacute", 389),
("scaron", 389),
("scedilla", 389),
("scommaaccent", 389),
("section", 500),
("semicolon", 333),
("seven", 500),
("six", 500),
("slash", 278),
("space", 250),
("sterling", 500),
("summation", 600),
("t", 333),
("tcaron", 416),
("tcommaaccent", 333),
("thorn", 556),
("three", 500),
("threequarters", 750),
("threesuperior", 300),
("tilde", 333),
("trademark", 1000),
("two", 500),
("twosuperior", 300),
("u", 556),
("uacute", 556),
("ucircumflex", 556),
("udieresis", 556),
("ugrave", 556),
("uhungarumlaut", 556),
("umacron", 556),
("underscore", 500),
("uogonek", 556),
("uring", 556),
("v", 500),
("w", 722),
("x", 500),
("y", 500),
("yacute", 500),
("ydieresis", 500),
("yen", 500),
("z", 444),
("zacute", 444),
("zcaron", 444),
("zdotaccent", 444),
("zero", 500),
];
const GLYPHS_TIMESITALIC: &[(&str, u16)] = &[
("A", 611),
("AE", 889),
("Aacute", 611),
("Abreve", 611),
("Acircumflex", 611),
("Adieresis", 611),
("Agrave", 611),
("Amacron", 611),
("Aogonek", 611),
("Aring", 611),
("Atilde", 611),
("B", 611),
("C", 667),
("Cacute", 667),
("Ccaron", 667),
("Ccedilla", 667),
("D", 722),
("Dcaron", 722),
("Dcroat", 722),
("Delta", 612),
("E", 611),
("Eacute", 611),
("Ecaron", 611),
("Ecircumflex", 611),
("Edieresis", 611),
("Edotaccent", 611),
("Egrave", 611),
("Emacron", 611),
("Eogonek", 611),
("Eth", 722),
("Euro", 500),
("F", 611),
("G", 722),
("Gbreve", 722),
("Gcommaaccent", 722),
("H", 722),
("I", 333),
("Iacute", 333),
("Icircumflex", 333),
("Idieresis", 333),
("Idotaccent", 333),
("Igrave", 333),
("Imacron", 333),
("Iogonek", 333),
("J", 444),
("K", 667),
("Kcommaaccent", 667),
("L", 556),
("Lacute", 556),
("Lcaron", 611),
("Lcommaaccent", 556),
("Lslash", 556),
("M", 833),
("N", 667),
("Nacute", 667),
("Ncaron", 667),
("Ncommaaccent", 667),
("Ntilde", 667),
("O", 722),
("OE", 944),
("Oacute", 722),
("Ocircumflex", 722),
("Odieresis", 722),
("Ograve", 722),
("Ohungarumlaut", 722),
("Omacron", 722),
("Oslash", 722),
("Otilde", 722),
("P", 611),
("Q", 722),
("R", 611),
("Racute", 611),
("Rcaron", 611),
("Rcommaaccent", 611),
("S", 500),
("Sacute", 500),
("Scaron", 500),
("Scedilla", 500),
("Scommaaccent", 500),
("T", 556),
("Tcaron", 556),
("Tcommaaccent", 556),
("Thorn", 611),
("U", 722),
("Uacute", 722),
("Ucircumflex", 722),
("Udieresis", 722),
("Ugrave", 722),
("Uhungarumlaut", 722),
("Umacron", 722),
("Uogonek", 722),
("Uring", 722),
("V", 611),
("W", 833),
("X", 611),
("Y", 556),
("Yacute", 556),
("Ydieresis", 556),
("Z", 556),
("Zacute", 556),
("Zcaron", 556),
("Zdotaccent", 556),
("a", 500),
("aacute", 500),
("abreve", 500),
("acircumflex", 500),
("acute", 333),
("adieresis", 500),
("ae", 667),
("agrave", 500),
("amacron", 500),
("ampersand", 778),
("aogonek", 500),
("aring", 500),
("asciicircum", 422),
("asciitilde", 541),
("asterisk", 500),
("at", 920),
("atilde", 500),
("b", 500),
("backslash", 278),
("bar", 275),
("braceleft", 400),
("braceright", 400),
("bracketleft", 389),
("bracketright", 389),
("breve", 333),
("brokenbar", 275),
("bullet", 350),
("c", 444),
("cacute", 444),
("caron", 333),
("ccaron", 444),
("ccedilla", 444),
("cedilla", 333),
("cent", 500),
("circumflex", 333),
("colon", 333),
("comma", 250),
("commaaccent", 250),
("copyright", 760),
("currency", 500),
("d", 500),
("dagger", 500),
("daggerdbl", 500),
("dcaron", 544),
("dcroat", 500),
("degree", 400),
("dieresis", 333),
("divide", 675),
("dollar", 500),
("dotaccent", 333),
("dotlessi", 278),
("e", 444),
("eacute", 444),
("ecaron", 444),
("ecircumflex", 444),
("edieresis", 444),
("edotaccent", 444),
("egrave", 444),
("eight", 500),
("ellipsis", 889),
("emacron", 444),
("emdash", 889),
("endash", 500),
("eogonek", 444),
("equal", 675),
("eth", 500),
("exclam", 333),
("exclamdown", 389),
("f", 278),
("fi", 500),
("five", 500),
("fl", 500),
("florin", 500),
("four", 500),
("fraction", 167),
("g", 500),
("gbreve", 500),
("gcommaaccent", 500),
("germandbls", 500),
("grave", 333),
("greater", 675),
("greaterequal", 549),
("guillemotleft", 500),
("guillemotright", 500),
("guilsinglleft", 333),
("guilsinglright", 333),
("h", 500),
("hungarumlaut", 333),
("hyphen", 333),
("i", 278),
("iacute", 278),
("icircumflex", 278),
("idieresis", 278),
("igrave", 278),
("imacron", 278),
("iogonek", 278),
("j", 278),
("k", 444),
("kcommaaccent", 444),
("l", 278),
("lacute", 278),
("lcaron", 300),
("lcommaaccent", 278),
("less", 675),
("lessequal", 549),
("logicalnot", 675),
("lozenge", 471),
("lslash", 278),
("m", 722),
("macron", 333),
("minus", 675),
("mu", 500),
("multiply", 675),
("n", 500),
("nacute", 500),
("ncaron", 500),
("ncommaaccent", 500),
("nine", 500),
("notequal", 549),
("ntilde", 500),
("numbersign", 500),
("o", 500),
("oacute", 500),
("ocircumflex", 500),
("odieresis", 500),
("oe", 667),
("ogonek", 333),
("ograve", 500),
("ohungarumlaut", 500),
("omacron", 500),
("one", 500),
("onehalf", 750),
("onequarter", 750),
("onesuperior", 300),
("ordfeminine", 276),
("ordmasculine", 310),
("oslash", 500),
("otilde", 500),
("p", 500),
("paragraph", 523),
("parenleft", 333),
("parenright", 333),
("partialdiff", 476),
("percent", 833),
("period", 250),
("periodcentered", 250),
("perthousand", 1000),
("plus", 675),
("plusminus", 675),
("q", 500),
("question", 500),
("questiondown", 500),
("quotedbl", 420),
("quotedblbase", 556),
("quotedblleft", 556),
("quotedblright", 556),
("quoteleft", 333),
("quoteright", 333),
("quotesinglbase", 333),
("quotesingle", 214),
("r", 389),
("racute", 389),
("radical", 453),
("rcaron", 389),
("rcommaaccent", 389),
("registered", 760),
("ring", 333),
("s", 389),
("sacute", 389),
("scaron", 389),
("scedilla", 389),
("scommaaccent", 389),
("section", 500),
("semicolon", 333),
("seven", 500),
("six", 500),
("slash", 278),
("space", 250),
("sterling", 500),
("summation", 600),
("t", 278),
("tcaron", 300),
("tcommaaccent", 278),
("thorn", 500),
("three", 500),
("threequarters", 750),
("threesuperior", 300),
("tilde", 333),
("trademark", 980),
("two", 500),
("twosuperior", 300),
("u", 500),
("uacute", 500),
("ucircumflex", 500),
("udieresis", 500),
("ugrave", 500),
("uhungarumlaut", 500),
("umacron", 500),
("underscore", 500),
("uogonek", 500),
("uring", 500),
("v", 444),
("w", 667),
("x", 444),
("y", 444),
("yacute", 444),
("ydieresis", 444),
("yen", 500),
("z", 389),
("zacute", 389),
("zcaron", 389),
("zdotaccent", 389),
("zero", 500),
];
const GLYPHS_TIMESBOLDITALIC: &[(&str, u16)] = &[
("A", 667),
("AE", 944),
("Aacute", 667),
("Abreve", 667),
("Acircumflex", 667),
("Adieresis", 667),
("Agrave", 667),
("Amacron", 667),
("Aogonek", 667),
("Aring", 667),
("Atilde", 667),
("B", 667),
("C", 667),
("Cacute", 667),
("Ccaron", 667),
("Ccedilla", 667),
("D", 722),
("Dcaron", 722),
("Dcroat", 722),
("Delta", 612),
("E", 667),
("Eacute", 667),
("Ecaron", 667),
("Ecircumflex", 667),
("Edieresis", 667),
("Edotaccent", 667),
("Egrave", 667),
("Emacron", 667),
("Eogonek", 667),
("Eth", 722),
("Euro", 500),
("F", 667),
("G", 722),
("Gbreve", 722),
("Gcommaaccent", 722),
("H", 778),
("I", 389),
("Iacute", 389),
("Icircumflex", 389),
("Idieresis", 389),
("Idotaccent", 389),
("Igrave", 389),
("Imacron", 389),
("Iogonek", 389),
("J", 500),
("K", 667),
("Kcommaaccent", 667),
("L", 611),
("Lacute", 611),
("Lcaron", 611),
("Lcommaaccent", 611),
("Lslash", 611),
("M", 889),
("N", 722),
("Nacute", 722),
("Ncaron", 722),
("Ncommaaccent", 722),
("Ntilde", 722),
("O", 722),
("OE", 944),
("Oacute", 722),
("Ocircumflex", 722),
("Odieresis", 722),
("Ograve", 722),
("Ohungarumlaut", 722),
("Omacron", 722),
("Oslash", 722),
("Otilde", 722),
("P", 611),
("Q", 722),
("R", 667),
("Racute", 667),
("Rcaron", 667),
("Rcommaaccent", 667),
("S", 556),
("Sacute", 556),
("Scaron", 556),
("Scedilla", 556),
("Scommaaccent", 556),
("T", 611),
("Tcaron", 611),
("Tcommaaccent", 611),
("Thorn", 611),
("U", 722),
("Uacute", 722),
("Ucircumflex", 722),
("Udieresis", 722),
("Ugrave", 722),
("Uhungarumlaut", 722),
("Umacron", 722),
("Uogonek", 722),
("Uring", 722),
("V", 667),
("W", 889),
("X", 667),
("Y", 611),
("Yacute", 611),
("Ydieresis", 611),
("Z", 611),
("Zacute", 611),
("Zcaron", 611),
("Zdotaccent", 611),
("a", 500),
("aacute", 500),
("abreve", 500),
("acircumflex", 500),
("acute", 333),
("adieresis", 500),
("ae", 722),
("agrave", 500),
("amacron", 500),
("ampersand", 778),
("aogonek", 500),
("aring", 500),
("asciicircum", 570),
("asciitilde", 570),
("asterisk", 500),
("at", 832),
("atilde", 500),
("b", 500),
("backslash", 278),
("bar", 220),
("braceleft", 348),
("braceright", 348),
("bracketleft", 333),
("bracketright", 333),
("breve", 333),
("brokenbar", 220),
("bullet", 350),
("c", 444),
("cacute", 444),
("caron", 333),
("ccaron", 444),
("ccedilla", 444),
("cedilla", 333),
("cent", 500),
("circumflex", 333),
("colon", 333),
("comma", 250),
("commaaccent", 250),
("copyright", 747),
("currency", 500),
("d", 500),
("dagger", 500),
("daggerdbl", 500),
("dcaron", 608),
("dcroat", 500),
("degree", 400),
("dieresis", 333),
("divide", 570),
("dollar", 500),
("dotaccent", 333),
("dotlessi", 278),
("e", 444),
("eacute", 444),
("ecaron", 444),
("ecircumflex", 444),
("edieresis", 444),
("edotaccent", 444),
("egrave", 444),
("eight", 500),
("ellipsis", 1000),
("emacron", 444),
("emdash", 1000),
("endash", 500),
("eogonek", 444),
("equal", 570),
("eth", 500),
("exclam", 389),
("exclamdown", 389),
("f", 333),
("fi", 556),
("five", 500),
("fl", 556),
("florin", 500),
("four", 500),
("fraction", 167),
("g", 500),
("gbreve", 500),
("gcommaaccent", 500),
("germandbls", 500),
("grave", 333),
("greater", 570),
("greaterequal", 549),
("guillemotleft", 500),
("guillemotright", 500),
("guilsinglleft", 333),
("guilsinglright", 333),
("h", 556),
("hungarumlaut", 333),
("hyphen", 333),
("i", 278),
("iacute", 278),
("icircumflex", 278),
("idieresis", 278),
("igrave", 278),
("imacron", 278),
("iogonek", 278),
("j", 278),
("k", 500),
("kcommaaccent", 500),
("l", 278),
("lacute", 278),
("lcaron", 382),
("lcommaaccent", 278),
("less", 570),
("lessequal", 549),
("logicalnot", 606),
("lozenge", 494),
("lslash", 278),
("m", 778),
("macron", 333),
("minus", 606),
("mu", 576),
("multiply", 570),
("n", 556),
("nacute", 556),
("ncaron", 556),
("ncommaaccent", 556),
("nine", 500),
("notequal", 549),
("ntilde", 556),
("numbersign", 500),
("o", 500),
("oacute", 500),
("ocircumflex", 500),
("odieresis", 500),
("oe", 722),
("ogonek", 333),
("ograve", 500),
("ohungarumlaut", 500),
("omacron", 500),
("one", 500),
("onehalf", 750),
("onequarter", 750),
("onesuperior", 300),
("ordfeminine", 266),
("ordmasculine", 300),
("oslash", 500),
("otilde", 500),
("p", 500),
("paragraph", 500),
("parenleft", 333),
("parenright", 333),
("partialdiff", 494),
("percent", 833),
("period", 250),
("periodcentered", 250),
("perthousand", 1000),
("plus", 570),
("plusminus", 570),
("q", 500),
("question", 500),
("questiondown", 500),
("quotedbl", 555),
("quotedblbase", 500),
("quotedblleft", 500),
("quotedblright", 500),
("quoteleft", 333),
("quoteright", 333),
("quotesinglbase", 333),
("quotesingle", 278),
("r", 389),
("racute", 389),
("radical", 549),
("rcaron", 389),
("rcommaaccent", 389),
("registered", 747),
("ring", 333),
("s", 389),
("sacute", 389),
("scaron", 389),
("scedilla", 389),
("scommaaccent", 389),
("section", 500),
("semicolon", 333),
("seven", 500),
("six", 500),
("slash", 278),
("space", 250),
("sterling", 500),
("summation", 600),
("t", 278),
("tcaron", 366),
("tcommaaccent", 278),
("thorn", 500),
("three", 500),
("threequarters", 750),
("threesuperior", 300),
("tilde", 333),
("trademark", 1000),
("two", 500),
("twosuperior", 300),
("u", 556),
("uacute", 556),
("ucircumflex", 556),
("udieresis", 556),
("ugrave", 556),
("uhungarumlaut", 556),
("umacron", 556),
("underscore", 500),
("uogonek", 556),
("uring", 556),
("v", 444),
("w", 667),
("x", 500),
("y", 444),
("yacute", 444),
("ydieresis", 444),
("yen", 500),
("z", 389),
("zacute", 389),
("zcaron", 389),
("zdotaccent", 389),
("zero", 500),
];
const GLYPHS_COURIER: &[(&str, u16)] = &[
("A", 600),
("AE", 600),
("Aacute", 600),
("Abreve", 600),
("Acircumflex", 600),
("Adieresis", 600),
("Agrave", 600),
("Amacron", 600),
("Aogonek", 600),
("Aring", 600),
("Atilde", 600),
("B", 600),
("C", 600),
("Cacute", 600),
("Ccaron", 600),
("Ccedilla", 600),
("D", 600),
("Dcaron", 600),
("Dcroat", 600),
("Delta", 600),
("E", 600),
("Eacute", 600),
("Ecaron", 600),
("Ecircumflex", 600),
("Edieresis", 600),
("Edotaccent", 600),
("Egrave", 600),
("Emacron", 600),
("Eogonek", 600),
("Eth", 600),
("Euro", 600),
("F", 600),
("G", 600),
("Gbreve", 600),
("Gcommaaccent", 600),
("H", 600),
("I", 600),
("Iacute", 600),
("Icircumflex", 600),
("Idieresis", 600),
("Idotaccent", 600),
("Igrave", 600),
("Imacron", 600),
("Iogonek", 600),
("J", 600),
("K", 600),
("Kcommaaccent", 600),
("L", 600),
("Lacute", 600),
("Lcaron", 600),
("Lcommaaccent", 600),
("Lslash", 600),
("M", 600),
("N", 600),
("Nacute", 600),
("Ncaron", 600),
("Ncommaaccent", 600),
("Ntilde", 600),
("O", 600),
("OE", 600),
("Oacute", 600),
("Ocircumflex", 600),
("Odieresis", 600),
("Ograve", 600),
("Ohungarumlaut", 600),
("Omacron", 600),
("Oslash", 600),
("Otilde", 600),
("P", 600),
("Q", 600),
("R", 600),
("Racute", 600),
("Rcaron", 600),
("Rcommaaccent", 600),
("S", 600),
("Sacute", 600),
("Scaron", 600),
("Scedilla", 600),
("Scommaaccent", 600),
("T", 600),
("Tcaron", 600),
("Tcommaaccent", 600),
("Thorn", 600),
("U", 600),
("Uacute", 600),
("Ucircumflex", 600),
("Udieresis", 600),
("Ugrave", 600),
("Uhungarumlaut", 600),
("Umacron", 600),
("Uogonek", 600),
("Uring", 600),
("V", 600),
("W", 600),
("X", 600),
("Y", 600),
("Yacute", 600),
("Ydieresis", 600),
("Z", 600),
("Zacute", 600),
("Zcaron", 600),
("Zdotaccent", 600),
("a", 600),
("aacute", 600),
("abreve", 600),
("acircumflex", 600),
("acute", 600),
("adieresis", 600),
("ae", 600),
("agrave", 600),
("amacron", 600),
("ampersand", 600),
("aogonek", 600),
("aring", 600),
("asciicircum", 600),
("asciitilde", 600),
("asterisk", 600),
("at", 600),
("atilde", 600),
("b", 600),
("backslash", 600),
("bar", 600),
("braceleft", 600),
("braceright", 600),
("bracketleft", 600),
("bracketright", 600),
("breve", 600),
("brokenbar", 600),
("bullet", 600),
("c", 600),
("cacute", 600),
("caron", 600),
("ccaron", 600),
("ccedilla", 600),
("cedilla", 600),
("cent", 600),
("circumflex", 600),
("colon", 600),
("comma", 600),
("commaaccent", 600),
("copyright", 600),
("currency", 600),
("d", 600),
("dagger", 600),
("daggerdbl", 600),
("dcaron", 600),
("dcroat", 600),
("degree", 600),
("dieresis", 600),
("divide", 600),
("dollar", 600),
("dotaccent", 600),
("dotlessi", 600),
("e", 600),
("eacute", 600),
("ecaron", 600),
("ecircumflex", 600),
("edieresis", 600),
("edotaccent", 600),
("egrave", 600),
("eight", 600),
("ellipsis", 600),
("emacron", 600),
("emdash", 600),
("endash", 600),
("eogonek", 600),
("equal", 600),
("eth", 600),
("exclam", 600),
("exclamdown", 600),
("f", 600),
("fi", 600),
("five", 600),
("fl", 600),
("florin", 600),
("four", 600),
("fraction", 600),
("g", 600),
("gbreve", 600),
("gcommaaccent", 600),
("germandbls", 600),
("grave", 600),
("greater", 600),
("greaterequal", 600),
("guillemotleft", 600),
("guillemotright", 600),
("guilsinglleft", 600),
("guilsinglright", 600),
("h", 600),
("hungarumlaut", 600),
("hyphen", 600),
("i", 600),
("iacute", 600),
("icircumflex", 600),
("idieresis", 600),
("igrave", 600),
("imacron", 600),
("iogonek", 600),
("j", 600),
("k", 600),
("kcommaaccent", 600),
("l", 600),
("lacute", 600),
("lcaron", 600),
("lcommaaccent", 600),
("less", 600),
("lessequal", 600),
("logicalnot", 600),
("lozenge", 600),
("lslash", 600),
("m", 600),
("macron", 600),
("minus", 600),
("mu", 600),
("multiply", 600),
("n", 600),
("nacute", 600),
("ncaron", 600),
("ncommaaccent", 600),
("nine", 600),
("notequal", 600),
("ntilde", 600),
("numbersign", 600),
("o", 600),
("oacute", 600),
("ocircumflex", 600),
("odieresis", 600),
("oe", 600),
("ogonek", 600),
("ograve", 600),
("ohungarumlaut", 600),
("omacron", 600),
("one", 600),
("onehalf", 600),
("onequarter", 600),
("onesuperior", 600),
("ordfeminine", 600),
("ordmasculine", 600),
("oslash", 600),
("otilde", 600),
("p", 600),
("paragraph", 600),
("parenleft", 600),
("parenright", 600),
("partialdiff", 600),
("percent", 600),
("period", 600),
("periodcentered", 600),
("perthousand", 600),
("plus", 600),
("plusminus", 600),
("q", 600),
("question", 600),
("questiondown", 600),
("quotedbl", 600),
("quotedblbase", 600),
("quotedblleft", 600),
("quotedblright", 600),
("quoteleft", 600),
("quoteright", 600),
("quotesinglbase", 600),
("quotesingle", 600),
("r", 600),
("racute", 600),
("radical", 600),
("rcaron", 600),
("rcommaaccent", 600),
("registered", 600),
("ring", 600),
("s", 600),
("sacute", 600),
("scaron", 600),
("scedilla", 600),
("scommaaccent", 600),
("section", 600),
("semicolon", 600),
("seven", 600),
("six", 600),
("slash", 600),
("space", 600),
("sterling", 600),
("summation", 600),
("t", 600),
("tcaron", 600),
("tcommaaccent", 600),
("thorn", 600),
("three", 600),
("threequarters", 600),
("threesuperior", 600),
("tilde", 600),
("trademark", 600),
("two", 600),
("twosuperior", 600),
("u", 600),
("uacute", 600),
("ucircumflex", 600),
("udieresis", 600),
("ugrave", 600),
("uhungarumlaut", 600),
("umacron", 600),
("underscore", 600),
("uogonek", 600),
("uring", 600),
("v", 600),
("w", 600),
("x", 600),
("y", 600),
("yacute", 600),
("ydieresis", 600),
("yen", 600),
("z", 600),
("zacute", 600),
("zcaron", 600),
("zdotaccent", 600),
("zero", 600),
];
const GLYPHS_COURIERBOLD: &[(&str, u16)] = &[
("A", 600),
("AE", 600),
("Aacute", 600),
("Abreve", 600),
("Acircumflex", 600),
("Adieresis", 600),
("Agrave", 600),
("Amacron", 600),
("Aogonek", 600),
("Aring", 600),
("Atilde", 600),
("B", 600),
("C", 600),
("Cacute", 600),
("Ccaron", 600),
("Ccedilla", 600),
("D", 600),
("Dcaron", 600),
("Dcroat", 600),
("Delta", 600),
("E", 600),
("Eacute", 600),
("Ecaron", 600),
("Ecircumflex", 600),
("Edieresis", 600),
("Edotaccent", 600),
("Egrave", 600),
("Emacron", 600),
("Eogonek", 600),
("Eth", 600),
("Euro", 600),
("F", 600),
("G", 600),
("Gbreve", 600),
("Gcommaaccent", 600),
("H", 600),
("I", 600),
("Iacute", 600),
("Icircumflex", 600),
("Idieresis", 600),
("Idotaccent", 600),
("Igrave", 600),
("Imacron", 600),
("Iogonek", 600),
("J", 600),
("K", 600),
("Kcommaaccent", 600),
("L", 600),
("Lacute", 600),
("Lcaron", 600),
("Lcommaaccent", 600),
("Lslash", 600),
("M", 600),
("N", 600),
("Nacute", 600),
("Ncaron", 600),
("Ncommaaccent", 600),
("Ntilde", 600),
("O", 600),
("OE", 600),
("Oacute", 600),
("Ocircumflex", 600),
("Odieresis", 600),
("Ograve", 600),
("Ohungarumlaut", 600),
("Omacron", 600),
("Oslash", 600),
("Otilde", 600),
("P", 600),
("Q", 600),
("R", 600),
("Racute", 600),
("Rcaron", 600),
("Rcommaaccent", 600),
("S", 600),
("Sacute", 600),
("Scaron", 600),
("Scedilla", 600),
("Scommaaccent", 600),
("T", 600),
("Tcaron", 600),
("Tcommaaccent", 600),
("Thorn", 600),
("U", 600),
("Uacute", 600),
("Ucircumflex", 600),
("Udieresis", 600),
("Ugrave", 600),
("Uhungarumlaut", 600),
("Umacron", 600),
("Uogonek", 600),
("Uring", 600),
("V", 600),
("W", 600),
("X", 600),
("Y", 600),
("Yacute", 600),
("Ydieresis", 600),
("Z", 600),
("Zacute", 600),
("Zcaron", 600),
("Zdotaccent", 600),
("a", 600),
("aacute", 600),
("abreve", 600),
("acircumflex", 600),
("acute", 600),
("adieresis", 600),
("ae", 600),
("agrave", 600),
("amacron", 600),
("ampersand", 600),
("aogonek", 600),
("aring", 600),
("asciicircum", 600),
("asciitilde", 600),
("asterisk", 600),
("at", 600),
("atilde", 600),
("b", 600),
("backslash", 600),
("bar", 600),
("braceleft", 600),
("braceright", 600),
("bracketleft", 600),
("bracketright", 600),
("breve", 600),
("brokenbar", 600),
("bullet", 600),
("c", 600),
("cacute", 600),
("caron", 600),
("ccaron", 600),
("ccedilla", 600),
("cedilla", 600),
("cent", 600),
("circumflex", 600),
("colon", 600),
("comma", 600),
("commaaccent", 600),
("copyright", 600),
("currency", 600),
("d", 600),
("dagger", 600),
("daggerdbl", 600),
("dcaron", 600),
("dcroat", 600),
("degree", 600),
("dieresis", 600),
("divide", 600),
("dollar", 600),
("dotaccent", 600),
("dotlessi", 600),
("e", 600),
("eacute", 600),
("ecaron", 600),
("ecircumflex", 600),
("edieresis", 600),
("edotaccent", 600),
("egrave", 600),
("eight", 600),
("ellipsis", 600),
("emacron", 600),
("emdash", 600),
("endash", 600),
("eogonek", 600),
("equal", 600),
("eth", 600),
("exclam", 600),
("exclamdown", 600),
("f", 600),
("fi", 600),
("five", 600),
("fl", 600),
("florin", 600),
("four", 600),
("fraction", 600),
("g", 600),
("gbreve", 600),
("gcommaaccent", 600),
("germandbls", 600),
("grave", 600),
("greater", 600),
("greaterequal", 600),
("guillemotleft", 600),
("guillemotright", 600),
("guilsinglleft", 600),
("guilsinglright", 600),
("h", 600),
("hungarumlaut", 600),
("hyphen", 600),
("i", 600),
("iacute", 600),
("icircumflex", 600),
("idieresis", 600),
("igrave", 600),
("imacron", 600),
("iogonek", 600),
("j", 600),
("k", 600),
("kcommaaccent", 600),
("l", 600),
("lacute", 600),
("lcaron", 600),
("lcommaaccent", 600),
("less", 600),
("lessequal", 600),
("logicalnot", 600),
("lozenge", 600),
("lslash", 600),
("m", 600),
("macron", 600),
("minus", 600),
("mu", 600),
("multiply", 600),
("n", 600),
("nacute", 600),
("ncaron", 600),
("ncommaaccent", 600),
("nine", 600),
("notequal", 600),
("ntilde", 600),
("numbersign", 600),
("o", 600),
("oacute", 600),
("ocircumflex", 600),
("odieresis", 600),
("oe", 600),
("ogonek", 600),
("ograve", 600),
("ohungarumlaut", 600),
("omacron", 600),
("one", 600),
("onehalf", 600),
("onequarter", 600),
("onesuperior", 600),
("ordfeminine", 600),
("ordmasculine", 600),
("oslash", 600),
("otilde", 600),
("p", 600),
("paragraph", 600),
("parenleft", 600),
("parenright", 600),
("partialdiff", 600),
("percent", 600),
("period", 600),
("periodcentered", 600),
("perthousand", 600),
("plus", 600),
("plusminus", 600),
("q", 600),
("question", 600),
("questiondown", 600),
("quotedbl", 600),
("quotedblbase", 600),
("quotedblleft", 600),
("quotedblright", 600),
("quoteleft", 600),
("quoteright", 600),
("quotesinglbase", 600),
("quotesingle", 600),
("r", 600),
("racute", 600),
("radical", 600),
("rcaron", 600),
("rcommaaccent", 600),
("registered", 600),
("ring", 600),
("s", 600),
("sacute", 600),
("scaron", 600),
("scedilla", 600),
("scommaaccent", 600),
("section", 600),
("semicolon", 600),
("seven", 600),
("six", 600),
("slash", 600),
("space", 600),
("sterling", 600),
("summation", 600),
("t", 600),
("tcaron", 600),
("tcommaaccent", 600),
("thorn", 600),
("three", 600),
("threequarters", 600),
("threesuperior", 600),
("tilde", 600),
("trademark", 600),
("two", 600),
("twosuperior", 600),
("u", 600),
("uacute", 600),
("ucircumflex", 600),
("udieresis", 600),
("ugrave", 600),
("uhungarumlaut", 600),
("umacron", 600),
("underscore", 600),
("uogonek", 600),
("uring", 600),
("v", 600),
("w", 600),
("x", 600),
("y", 600),
("yacute", 600),
("ydieresis", 600),
("yen", 600),
("z", 600),
("zacute", 600),
("zcaron", 600),
("zdotaccent", 600),
("zero", 600),
];
const GLYPHS_COURIEROBLIQUE: &[(&str, u16)] = &[
("A", 600),
("AE", 600),
("Aacute", 600),
("Abreve", 600),
("Acircumflex", 600),
("Adieresis", 600),
("Agrave", 600),
("Amacron", 600),
("Aogonek", 600),
("Aring", 600),
("Atilde", 600),
("B", 600),
("C", 600),
("Cacute", 600),
("Ccaron", 600),
("Ccedilla", 600),
("D", 600),
("Dcaron", 600),
("Dcroat", 600),
("Delta", 600),
("E", 600),
("Eacute", 600),
("Ecaron", 600),
("Ecircumflex", 600),
("Edieresis", 600),
("Edotaccent", 600),
("Egrave", 600),
("Emacron", 600),
("Eogonek", 600),
("Eth", 600),
("Euro", 600),
("F", 600),
("G", 600),
("Gbreve", 600),
("Gcommaaccent", 600),
("H", 600),
("I", 600),
("Iacute", 600),
("Icircumflex", 600),
("Idieresis", 600),
("Idotaccent", 600),
("Igrave", 600),
("Imacron", 600),
("Iogonek", 600),
("J", 600),
("K", 600),
("Kcommaaccent", 600),
("L", 600),
("Lacute", 600),
("Lcaron", 600),
("Lcommaaccent", 600),
("Lslash", 600),
("M", 600),
("N", 600),
("Nacute", 600),
("Ncaron", 600),
("Ncommaaccent", 600),
("Ntilde", 600),
("O", 600),
("OE", 600),
("Oacute", 600),
("Ocircumflex", 600),
("Odieresis", 600),
("Ograve", 600),
("Ohungarumlaut", 600),
("Omacron", 600),
("Oslash", 600),
("Otilde", 600),
("P", 600),
("Q", 600),
("R", 600),
("Racute", 600),
("Rcaron", 600),
("Rcommaaccent", 600),
("S", 600),
("Sacute", 600),
("Scaron", 600),
("Scedilla", 600),
("Scommaaccent", 600),
("T", 600),
("Tcaron", 600),
("Tcommaaccent", 600),
("Thorn", 600),
("U", 600),
("Uacute", 600),
("Ucircumflex", 600),
("Udieresis", 600),
("Ugrave", 600),
("Uhungarumlaut", 600),
("Umacron", 600),
("Uogonek", 600),
("Uring", 600),
("V", 600),
("W", 600),
("X", 600),
("Y", 600),
("Yacute", 600),
("Ydieresis", 600),
("Z", 600),
("Zacute", 600),
("Zcaron", 600),
("Zdotaccent", 600),
("a", 600),
("aacute", 600),
("abreve", 600),
("acircumflex", 600),
("acute", 600),
("adieresis", 600),
("ae", 600),
("agrave", 600),
("amacron", 600),
("ampersand", 600),
("aogonek", 600),
("aring", 600),
("asciicircum", 600),
("asciitilde", 600),
("asterisk", 600),
("at", 600),
("atilde", 600),
("b", 600),
("backslash", 600),
("bar", 600),
("braceleft", 600),
("braceright", 600),
("bracketleft", 600),
("bracketright", 600),
("breve", 600),
("brokenbar", 600),
("bullet", 600),
("c", 600),
("cacute", 600),
("caron", 600),
("ccaron", 600),
("ccedilla", 600),
("cedilla", 600),
("cent", 600),
("circumflex", 600),
("colon", 600),
("comma", 600),
("commaaccent", 600),
("copyright", 600),
("currency", 600),
("d", 600),
("dagger", 600),
("daggerdbl", 600),
("dcaron", 600),
("dcroat", 600),
("degree", 600),
("dieresis", 600),
("divide", 600),
("dollar", 600),
("dotaccent", 600),
("dotlessi", 600),
("e", 600),
("eacute", 600),
("ecaron", 600),
("ecircumflex", 600),
("edieresis", 600),
("edotaccent", 600),
("egrave", 600),
("eight", 600),
("ellipsis", 600),
("emacron", 600),
("emdash", 600),
("endash", 600),
("eogonek", 600),
("equal", 600),
("eth", 600),
("exclam", 600),
("exclamdown", 600),
("f", 600),
("fi", 600),
("five", 600),
("fl", 600),
("florin", 600),
("four", 600),
("fraction", 600),
("g", 600),
("gbreve", 600),
("gcommaaccent", 600),
("germandbls", 600),
("grave", 600),
("greater", 600),
("greaterequal", 600),
("guillemotleft", 600),
("guillemotright", 600),
("guilsinglleft", 600),
("guilsinglright", 600),
("h", 600),
("hungarumlaut", 600),
("hyphen", 600),
("i", 600),
("iacute", 600),
("icircumflex", 600),
("idieresis", 600),
("igrave", 600),
("imacron", 600),
("iogonek", 600),
("j", 600),
("k", 600),
("kcommaaccent", 600),
("l", 600),
("lacute", 600),
("lcaron", 600),
("lcommaaccent", 600),
("less", 600),
("lessequal", 600),
("logicalnot", 600),
("lozenge", 600),
("lslash", 600),
("m", 600),
("macron", 600),
("minus", 600),
("mu", 600),
("multiply", 600),
("n", 600),
("nacute", 600),
("ncaron", 600),
("ncommaaccent", 600),
("nine", 600),
("notequal", 600),
("ntilde", 600),
("numbersign", 600),
("o", 600),
("oacute", 600),
("ocircumflex", 600),
("odieresis", 600),
("oe", 600),
("ogonek", 600),
("ograve", 600),
("ohungarumlaut", 600),
("omacron", 600),
("one", 600),
("onehalf", 600),
("onequarter", 600),
("onesuperior", 600),
("ordfeminine", 600),
("ordmasculine", 600),
("oslash", 600),
("otilde", 600),
("p", 600),
("paragraph", 600),
("parenleft", 600),
("parenright", 600),
("partialdiff", 600),
("percent", 600),
("period", 600),
("periodcentered", 600),
("perthousand", 600),
("plus", 600),
("plusminus", 600),
("q", 600),
("question", 600),
("questiondown", 600),
("quotedbl", 600),
("quotedblbase", 600),
("quotedblleft", 600),
("quotedblright", 600),
("quoteleft", 600),
("quoteright", 600),
("quotesinglbase", 600),
("quotesingle", 600),
("r", 600),
("racute", 600),
("radical", 600),
("rcaron", 600),
("rcommaaccent", 600),
("registered", 600),
("ring", 600),
("s", 600),
("sacute", 600),
("scaron", 600),
("scedilla", 600),
("scommaaccent", 600),
("section", 600),
("semicolon", 600),
("seven", 600),
("six", 600),
("slash", 600),
("space", 600),
("sterling", 600),
("summation", 600),
("t", 600),
("tcaron", 600),
("tcommaaccent", 600),
("thorn", 600),
("three", 600),
("threequarters", 600),
("threesuperior", 600),
("tilde", 600),
("trademark", 600),
("two", 600),
("twosuperior", 600),
("u", 600),
("uacute", 600),
("ucircumflex", 600),
("udieresis", 600),
("ugrave", 600),
("uhungarumlaut", 600),
("umacron", 600),
("underscore", 600),
("uogonek", 600),
("uring", 600),
("v", 600),
("w", 600),
("x", 600),
("y", 600),
("yacute", 600),
("ydieresis", 600),
("yen", 600),
("z", 600),
("zacute", 600),
("zcaron", 600),
("zdotaccent", 600),
("zero", 600),
];
const GLYPHS_COURIERBOLDOBLIQUE: &[(&str, u16)] = &[
("A", 600),
("AE", 600),
("Aacute", 600),
("Abreve", 600),
("Acircumflex", 600),
("Adieresis", 600),
("Agrave", 600),
("Amacron", 600),
("Aogonek", 600),
("Aring", 600),
("Atilde", 600),
("B", 600),
("C", 600),
("Cacute", 600),
("Ccaron", 600),
("Ccedilla", 600),
("D", 600),
("Dcaron", 600),
("Dcroat", 600),
("Delta", 600),
("E", 600),
("Eacute", 600),
("Ecaron", 600),
("Ecircumflex", 600),
("Edieresis", 600),
("Edotaccent", 600),
("Egrave", 600),
("Emacron", 600),
("Eogonek", 600),
("Eth", 600),
("Euro", 600),
("F", 600),
("G", 600),
("Gbreve", 600),
("Gcommaaccent", 600),
("H", 600),
("I", 600),
("Iacute", 600),
("Icircumflex", 600),
("Idieresis", 600),
("Idotaccent", 600),
("Igrave", 600),
("Imacron", 600),
("Iogonek", 600),
("J", 600),
("K", 600),
("Kcommaaccent", 600),
("L", 600),
("Lacute", 600),
("Lcaron", 600),
("Lcommaaccent", 600),
("Lslash", 600),
("M", 600),
("N", 600),
("Nacute", 600),
("Ncaron", 600),
("Ncommaaccent", 600),
("Ntilde", 600),
("O", 600),
("OE", 600),
("Oacute", 600),
("Ocircumflex", 600),
("Odieresis", 600),
("Ograve", 600),
("Ohungarumlaut", 600),
("Omacron", 600),
("Oslash", 600),
("Otilde", 600),
("P", 600),
("Q", 600),
("R", 600),
("Racute", 600),
("Rcaron", 600),
("Rcommaaccent", 600),
("S", 600),
("Sacute", 600),
("Scaron", 600),
("Scedilla", 600),
("Scommaaccent", 600),
("T", 600),
("Tcaron", 600),
("Tcommaaccent", 600),
("Thorn", 600),
("U", 600),
("Uacute", 600),
("Ucircumflex", 600),
("Udieresis", 600),
("Ugrave", 600),
("Uhungarumlaut", 600),
("Umacron", 600),
("Uogonek", 600),
("Uring", 600),
("V", 600),
("W", 600),
("X", 600),
("Y", 600),
("Yacute", 600),
("Ydieresis", 600),
("Z", 600),
("Zacute", 600),
("Zcaron", 600),
("Zdotaccent", 600),
("a", 600),
("aacute", 600),
("abreve", 600),
("acircumflex", 600),
("acute", 600),
("adieresis", 600),
("ae", 600),
("agrave", 600),
("amacron", 600),
("ampersand", 600),
("aogonek", 600),
("aring", 600),
("asciicircum", 600),
("asciitilde", 600),
("asterisk", 600),
("at", 600),
("atilde", 600),
("b", 600),
("backslash", 600),
("bar", 600),
("braceleft", 600),
("braceright", 600),
("bracketleft", 600),
("bracketright", 600),
("breve", 600),
("brokenbar", 600),
("bullet", 600),
("c", 600),
("cacute", 600),
("caron", 600),
("ccaron", 600),
("ccedilla", 600),
("cedilla", 600),
("cent", 600),
("circumflex", 600),
("colon", 600),
("comma", 600),
("commaaccent", 600),
("copyright", 600),
("currency", 600),
("d", 600),
("dagger", 600),
("daggerdbl", 600),
("dcaron", 600),
("dcroat", 600),
("degree", 600),
("dieresis", 600),
("divide", 600),
("dollar", 600),
("dotaccent", 600),
("dotlessi", 600),
("e", 600),
("eacute", 600),
("ecaron", 600),
("ecircumflex", 600),
("edieresis", 600),
("edotaccent", 600),
("egrave", 600),
("eight", 600),
("ellipsis", 600),
("emacron", 600),
("emdash", 600),
("endash", 600),
("eogonek", 600),
("equal", 600),
("eth", 600),
("exclam", 600),
("exclamdown", 600),
("f", 600),
("fi", 600),
("five", 600),
("fl", 600),
("florin", 600),
("four", 600),
("fraction", 600),
("g", 600),
("gbreve", 600),
("gcommaaccent", 600),
("germandbls", 600),
("grave", 600),
("greater", 600),
("greaterequal", 600),
("guillemotleft", 600),
("guillemotright", 600),
("guilsinglleft", 600),
("guilsinglright", 600),
("h", 600),
("hungarumlaut", 600),
("hyphen", 600),
("i", 600),
("iacute", 600),
("icircumflex", 600),
("idieresis", 600),
("igrave", 600),
("imacron", 600),
("iogonek", 600),
("j", 600),
("k", 600),
("kcommaaccent", 600),
("l", 600),
("lacute", 600),
("lcaron", 600),
("lcommaaccent", 600),
("less", 600),
("lessequal", 600),
("logicalnot", 600),
("lozenge", 600),
("lslash", 600),
("m", 600),
("macron", 600),
("minus", 600),
("mu", 600),
("multiply", 600),
("n", 600),
("nacute", 600),
("ncaron", 600),
("ncommaaccent", 600),
("nine", 600),
("notequal", 600),
("ntilde", 600),
("numbersign", 600),
("o", 600),
("oacute", 600),
("ocircumflex", 600),
("odieresis", 600),
("oe", 600),
("ogonek", 600),
("ograve", 600),
("ohungarumlaut", 600),
("omacron", 600),
("one", 600),
("onehalf", 600),
("onequarter", 600),
("onesuperior", 600),
("ordfeminine", 600),
("ordmasculine", 600),
("oslash", 600),
("otilde", 600),
("p", 600),
("paragraph", 600),
("parenleft", 600),
("parenright", 600),
("partialdiff", 600),
("percent", 600),
("period", 600),
("periodcentered", 600),
("perthousand", 600),
("plus", 600),
("plusminus", 600),
("q", 600),
("question", 600),
("questiondown", 600),
("quotedbl", 600),
("quotedblbase", 600),
("quotedblleft", 600),
("quotedblright", 600),
("quoteleft", 600),
("quoteright", 600),
("quotesinglbase", 600),
("quotesingle", 600),
("r", 600),
("racute", 600),
("radical", 600),
("rcaron", 600),
("rcommaaccent", 600),
("registered", 600),
("ring", 600),
("s", 600),
("sacute", 600),
("scaron", 600),
("scedilla", 600),
("scommaaccent", 600),
("section", 600),
("semicolon", 600),
("seven", 600),
("six", 600),
("slash", 600),
("space", 600),
("sterling", 600),
("summation", 600),
("t", 600),
("tcaron", 600),
("tcommaaccent", 600),
("thorn", 600),
("three", 600),
("threequarters", 600),
("threesuperior", 600),
("tilde", 600),
("trademark", 600),
("two", 600),
("twosuperior", 600),
("u", 600),
("uacute", 600),
("ucircumflex", 600),
("udieresis", 600),
("ugrave", 600),
("uhungarumlaut", 600),
("umacron", 600),
("underscore", 600),
("uogonek", 600),
("uring", 600),
("v", 600),
("w", 600),
("x", 600),
("y", 600),
("yacute", 600),
("ydieresis", 600),
("yen", 600),
("z", 600),
("zacute", 600),
("zcaron", 600),
("zdotaccent", 600),
("zero", 600),
];
const GLYPHS_SYMBOL: &[(&str, u16)] = &[
("Alpha", 722),
("Beta", 667),
("Chi", 722),
("Delta", 612),
("Epsilon", 611),
("Eta", 722),
("Euro", 750),
("Gamma", 603),
("Ifraktur", 686),
("Iota", 333),
("Kappa", 722),
("Lambda", 686),
("Mu", 889),
("Nu", 722),
("Omega", 768),
("Omicron", 722),
("Phi", 763),
("Pi", 768),
("Psi", 795),
("Rfraktur", 795),
("Rho", 556),
("Sigma", 592),
("Tau", 611),
("Theta", 741),
("Upsilon", 690),
("Upsilon1", 620),
("Xi", 645),
("Zeta", 611),
("aleph", 823),
("alpha", 631),
("ampersand", 778),
("angle", 768),
("angleleft", 329),
("angleright", 329),
("apple", 790),
("approxequal", 549),
("arrowboth", 1042),
("arrowdblboth", 1042),
("arrowdbldown", 603),
("arrowdblleft", 987),
("arrowdblright", 987),
("arrowdblup", 603),
("arrowdown", 603),
("arrowhorizex", 1000),
("arrowleft", 987),
("arrowright", 987),
("arrowup", 603),
("arrowvertex", 603),
("asteriskmath", 500),
("bar", 200),
("beta", 549),
("braceex", 494),
("braceleft", 480),
("braceleftbt", 494),
("braceleftmid", 494),
("bracelefttp", 494),
("braceright", 480),
("bracerightbt", 494),
("bracerightmid", 494),
("bracerighttp", 494),
("bracketleft", 333),
("bracketleftbt", 384),
("bracketleftex", 384),
("bracketlefttp", 384),
("bracketright", 333),
("bracketrightbt", 384),
("bracketrightex", 384),
("bracketrighttp", 384),
("bullet", 460),
("carriagereturn", 658),
("chi", 549),
("circlemultiply", 768),
("circleplus", 768),
("club", 753),
("colon", 278),
("comma", 250),
("congruent", 549),
("copyrightsans", 790),
("copyrightserif", 790),
("degree", 400),
("delta", 494),
("diamond", 753),
("divide", 549),
("dotmath", 250),
("eight", 500),
("element", 713),
("ellipsis", 1000),
("emptyset", 823),
("epsilon", 439),
("equal", 549),
("equivalence", 549),
("eta", 603),
("exclam", 333),
("existential", 549),
("five", 500),
("florin", 500),
("four", 500),
("fraction", 167),
("gamma", 411),
("gradient", 713),
("greater", 549),
("greaterequal", 549),
("heart", 753),
("infinity", 713),
("integral", 274),
("integralbt", 686),
("integralex", 686),
("integraltp", 686),
("intersection", 768),
("iota", 329),
("kappa", 549),
("lambda", 549),
("less", 549),
("lessequal", 549),
("logicaland", 603),
("logicalnot", 713),
("logicalor", 603),
("lozenge", 494),
("minus", 549),
("minute", 247),
("mu", 576),
("multiply", 549),
("nine", 500),
("notelement", 713),
("notequal", 549),
("notsubset", 713),
("nu", 521),
("numbersign", 500),
("omega", 686),
("omega1", 713),
("omicron", 549),
("one", 500),
("parenleft", 333),
("parenleftbt", 384),
("parenleftex", 384),
("parenlefttp", 384),
("parenright", 333),
("parenrightbt", 384),
("parenrightex", 384),
("parenrighttp", 384),
("partialdiff", 494),
("percent", 833),
("period", 250),
("perpendicular", 658),
("phi", 521),
("phi1", 603),
("pi", 549),
("plus", 549),
("plusminus", 549),
("product", 823),
("propersubset", 713),
("propersuperset", 713),
("proportional", 713),
("psi", 686),
("question", 444),
("radical", 549),
("radicalex", 500),
("reflexsubset", 713),
("reflexsuperset", 713),
("registersans", 790),
("registerserif", 790),
("rho", 549),
("second", 411),
("semicolon", 278),
("seven", 500),
("sigma", 603),
("sigma1", 439),
("similar", 549),
("six", 500),
("slash", 278),
("space", 250),
("spade", 753),
("suchthat", 439),
("summation", 713),
("tau", 439),
("therefore", 863),
("theta", 521),
("theta1", 631),
("three", 500),
("trademarksans", 786),
("trademarkserif", 890),
("two", 500),
("underscore", 500),
("union", 768),
("universal", 713),
("upsilon", 576),
("weierstrass", 987),
("xi", 493),
("zero", 500),
("zeta", 494),
];
const GLYPHS_ZAPFDINGBATS: &[(&str, u16)] = &[
("a1", 974),
("a10", 692),
("a100", 668),
("a101", 732),
("a102", 544),
("a103", 544),
("a104", 910),
("a105", 911),
("a106", 667),
("a107", 760),
("a108", 760),
("a109", 626),
("a11", 960),
("a110", 694),
("a111", 595),
("a112", 776),
("a117", 690),
("a118", 791),
("a119", 790),
("a12", 939),
("a120", 788),
("a121", 788),
("a122", 788),
("a123", 788),
("a124", 788),
("a125", 788),
("a126", 788),
("a127", 788),
("a128", 788),
("a129", 788),
("a13", 549),
("a130", 788),
("a131", 788),
("a132", 788),
("a133", 788),
("a134", 788),
("a135", 788),
("a136", 788),
("a137", 788),
("a138", 788),
("a139", 788),
("a14", 855),
("a140", 788),
("a141", 788),
("a142", 788),
("a143", 788),
("a144", 788),
("a145", 788),
("a146", 788),
("a147", 788),
("a148", 788),
("a149", 788),
("a15", 911),
("a150", 788),
("a151", 788),
("a152", 788),
("a153", 788),
("a154", 788),
("a155", 788),
("a156", 788),
("a157", 788),
("a158", 788),
("a159", 788),
("a16", 933),
("a160", 894),
("a161", 838),
("a162", 924),
("a163", 1016),
("a164", 458),
("a165", 924),
("a166", 918),
("a167", 927),
("a168", 928),
("a169", 928),
("a17", 945),
("a170", 834),
("a171", 873),
("a172", 828),
("a173", 924),
("a174", 917),
("a175", 930),
("a176", 931),
("a177", 463),
("a178", 883),
("a179", 836),
("a18", 974),
("a180", 867),
("a181", 696),
("a182", 874),
("a183", 760),
("a184", 946),
("a185", 865),
("a186", 967),
("a187", 831),
("a188", 873),
("a189", 927),
("a19", 755),
("a190", 970),
("a191", 918),
("a192", 748),
("a193", 836),
("a194", 771),
("a195", 888),
("a196", 748),
("a197", 771),
("a198", 888),
("a199", 867),
("a2", 961),
("a20", 846),
("a200", 696),
("a201", 874),
("a202", 974),
("a203", 762),
("a204", 759),
("a205", 509),
("a206", 410),
("a21", 762),
("a22", 761),
("a23", 571),
("a24", 677),
("a25", 763),
("a26", 760),
("a27", 759),
("a28", 754),
("a29", 786),
("a3", 980),
("a30", 788),
("a31", 788),
("a32", 790),
("a33", 793),
("a34", 794),
("a35", 816),
("a36", 823),
("a37", 789),
("a38", 841),
("a39", 823),
("a4", 719),
("a40", 833),
("a41", 816),
("a42", 831),
("a43", 923),
("a44", 744),
("a45", 723),
("a46", 749),
("a47", 790),
("a48", 792),
("a49", 695),
("a5", 789),
("a50", 776),
("a51", 768),
("a52", 792),
("a53", 759),
("a54", 707),
("a55", 708),
("a56", 682),
("a57", 701),
("a58", 826),
("a59", 815),
("a6", 494),
("a60", 789),
("a61", 789),
("a62", 707),
("a63", 687),
("a64", 696),
("a65", 689),
("a66", 786),
("a67", 787),
("a68", 713),
("a69", 791),
("a7", 552),
("a70", 785),
("a71", 791),
("a72", 873),
("a73", 761),
("a74", 762),
("a75", 759),
("a76", 892),
("a77", 892),
("a78", 788),
("a79", 784),
("a8", 537),
("a81", 438),
("a82", 138),
("a83", 277),
("a84", 415),
("a85", 509),
("a86", 410),
("a87", 234),
("a88", 234),
("a89", 390),
("a9", 577),
("a90", 390),
("a91", 276),
("a92", 276),
("a93", 317),
("a94", 317),
("a95", 334),
("a96", 334),
("a97", 392),
("a98", 392),
("a99", 668),
("space", 278),
];
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum StandardFont {
Helvetica,
HelveticaBold,
HelveticaOblique,
HelveticaBoldOblique,
TimesRoman,
TimesBold,
TimesItalic,
TimesBoldItalic,
Courier,
CourierBold,
CourierOblique,
CourierBoldOblique,
Symbol,
ZapfDingbats,
}
impl StandardFont {
pub fn from_base_name(name: &[u8]) -> Option<StandardFont> {
match name {
b"Helv" => Some(StandardFont::Helvetica),
b"Helvetica" => Some(StandardFont::Helvetica),
b"HeBo" => Some(StandardFont::HelveticaBold),
b"Helvetica-Bold" => Some(StandardFont::HelveticaBold),
b"HeOb" => Some(StandardFont::HelveticaOblique),
b"Helvetica-Oblique" => Some(StandardFont::HelveticaOblique),
b"HeBO" => Some(StandardFont::HelveticaBoldOblique),
b"Helvetica-BoldOblique" => Some(StandardFont::HelveticaBoldOblique),
b"TiRo" => Some(StandardFont::TimesRoman),
b"Times-Roman" => Some(StandardFont::TimesRoman),
b"TiBo" => Some(StandardFont::TimesBold),
b"Times-Bold" => Some(StandardFont::TimesBold),
b"TiIt" => Some(StandardFont::TimesItalic),
b"Times-Italic" => Some(StandardFont::TimesItalic),
b"TiBI" => Some(StandardFont::TimesBoldItalic),
b"Times-BoldItalic" => Some(StandardFont::TimesBoldItalic),
b"Cour" => Some(StandardFont::Courier),
b"Courier" => Some(StandardFont::Courier),
b"CoBo" => Some(StandardFont::CourierBold),
b"Courier-Bold" => Some(StandardFont::CourierBold),
b"CoOb" => Some(StandardFont::CourierOblique),
b"Courier-Oblique" => Some(StandardFont::CourierOblique),
b"CoBO" => Some(StandardFont::CourierBoldOblique),
b"Courier-BoldOblique" => Some(StandardFont::CourierBoldOblique),
b"Symb" => Some(StandardFont::Symbol),
b"Symbol" => Some(StandardFont::Symbol),
b"ZaDb" => Some(StandardFont::ZapfDingbats),
b"ZapfDingbats" => Some(StandardFont::ZapfDingbats),
_ => None,
}
}
pub fn glyph_width(&self, glyph_name: &str) -> Option<u16> {
let table = self.glyph_table();
table
.binary_search_by_key(&glyph_name, |&(name, _)| name)
.ok()
.map(|idx| table[idx].1)
}
pub fn notdef_width(&self) -> u16 {
self.glyph_width(".notdef").unwrap_or(0)
}
pub fn string_width(&self, bytes: &[u8], font_size: f64) -> f64 {
let notdef = f64::from(self.notdef_width());
let total: f64 = bytes
.iter()
.map(|&b| {
let glyph = WINANSI_ENCODING[b as usize];
if glyph == ".notdef" {
notdef
} else {
self.glyph_width(glyph).map(f64::from).unwrap_or(notdef)
}
})
.sum();
total * font_size / 1000.0
}
fn glyph_table(&self) -> &'static [(&'static str, u16)] {
match self {
StandardFont::Helvetica => GLYPHS_HELVETICA,
StandardFont::HelveticaBold => GLYPHS_HELVETICABOLD,
StandardFont::HelveticaOblique => GLYPHS_HELVETICAOBLIQUE,
StandardFont::HelveticaBoldOblique => GLYPHS_HELVETICABOLDOBLIQUE,
StandardFont::TimesRoman => GLYPHS_TIMESROMAN,
StandardFont::TimesBold => GLYPHS_TIMESBOLD,
StandardFont::TimesItalic => GLYPHS_TIMESITALIC,
StandardFont::TimesBoldItalic => GLYPHS_TIMESBOLDITALIC,
StandardFont::Courier => GLYPHS_COURIER,
StandardFont::CourierBold => GLYPHS_COURIERBOLD,
StandardFont::CourierOblique => GLYPHS_COURIEROBLIQUE,
StandardFont::CourierBoldOblique => GLYPHS_COURIERBOLDOBLIQUE,
StandardFont::Symbol => GLYPHS_SYMBOL,
StandardFont::ZapfDingbats => GLYPHS_ZAPFDINGBATS,
}
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn from_base_name_short_aliases() {
assert_eq!(
StandardFont::from_base_name(b"Helv"),
Some(StandardFont::Helvetica)
);
assert_eq!(
StandardFont::from_base_name(b"HeBo"),
Some(StandardFont::HelveticaBold)
);
assert_eq!(
StandardFont::from_base_name(b"HeOb"),
Some(StandardFont::HelveticaOblique)
);
assert_eq!(
StandardFont::from_base_name(b"HeBO"),
Some(StandardFont::HelveticaBoldOblique)
);
assert_eq!(
StandardFont::from_base_name(b"TiRo"),
Some(StandardFont::TimesRoman)
);
assert_eq!(
StandardFont::from_base_name(b"TiBo"),
Some(StandardFont::TimesBold)
);
assert_eq!(
StandardFont::from_base_name(b"TiIt"),
Some(StandardFont::TimesItalic)
);
assert_eq!(
StandardFont::from_base_name(b"TiBI"),
Some(StandardFont::TimesBoldItalic)
);
assert_eq!(
StandardFont::from_base_name(b"Cour"),
Some(StandardFont::Courier)
);
assert_eq!(
StandardFont::from_base_name(b"CoBo"),
Some(StandardFont::CourierBold)
);
assert_eq!(
StandardFont::from_base_name(b"CoOb"),
Some(StandardFont::CourierOblique)
);
assert_eq!(
StandardFont::from_base_name(b"CoBO"),
Some(StandardFont::CourierBoldOblique)
);
assert_eq!(
StandardFont::from_base_name(b"Symb"),
Some(StandardFont::Symbol)
);
assert_eq!(
StandardFont::from_base_name(b"ZaDb"),
Some(StandardFont::ZapfDingbats)
);
}
#[test]
fn from_base_name_full_names() {
assert_eq!(
StandardFont::from_base_name(b"Helvetica"),
Some(StandardFont::Helvetica)
);
assert_eq!(
StandardFont::from_base_name(b"Helvetica-Bold"),
Some(StandardFont::HelveticaBold)
);
assert_eq!(
StandardFont::from_base_name(b"Helvetica-Oblique"),
Some(StandardFont::HelveticaOblique)
);
assert_eq!(
StandardFont::from_base_name(b"Helvetica-BoldOblique"),
Some(StandardFont::HelveticaBoldOblique)
);
assert_eq!(
StandardFont::from_base_name(b"Times-Roman"),
Some(StandardFont::TimesRoman)
);
assert_eq!(
StandardFont::from_base_name(b"Times-Bold"),
Some(StandardFont::TimesBold)
);
assert_eq!(
StandardFont::from_base_name(b"Times-Italic"),
Some(StandardFont::TimesItalic)
);
assert_eq!(
StandardFont::from_base_name(b"Times-BoldItalic"),
Some(StandardFont::TimesBoldItalic)
);
assert_eq!(
StandardFont::from_base_name(b"Courier"),
Some(StandardFont::Courier)
);
assert_eq!(
StandardFont::from_base_name(b"Courier-Bold"),
Some(StandardFont::CourierBold)
);
assert_eq!(
StandardFont::from_base_name(b"Courier-Oblique"),
Some(StandardFont::CourierOblique)
);
assert_eq!(
StandardFont::from_base_name(b"Courier-BoldOblique"),
Some(StandardFont::CourierBoldOblique)
);
assert_eq!(
StandardFont::from_base_name(b"Symbol"),
Some(StandardFont::Symbol)
);
assert_eq!(
StandardFont::from_base_name(b"ZapfDingbats"),
Some(StandardFont::ZapfDingbats)
);
}
#[test]
fn from_base_name_unknown_returns_none() {
assert_eq!(StandardFont::from_base_name(b"Arial"), None);
assert_eq!(StandardFont::from_base_name(b"helvetica"), None); assert_eq!(StandardFont::from_base_name(b""), None);
}
#[test]
fn helvetica_reference_widths() {
let f = StandardFont::Helvetica;
assert_eq!(f.glyph_width("space"), Some(278));
assert_eq!(f.glyph_width("A"), Some(667));
assert_eq!(f.glyph_width("V"), Some(667));
}
#[test]
fn helvetica_bold_reference_widths() {
let f = StandardFont::HelveticaBold;
assert_eq!(f.glyph_width("space"), Some(278));
assert_eq!(f.glyph_width("A"), Some(722));
}
#[test]
fn times_roman_reference_widths() {
let f = StandardFont::TimesRoman;
assert_eq!(f.glyph_width("space"), Some(250));
assert_eq!(f.glyph_width("A"), Some(722));
}
#[test]
fn courier_all_glyphs_600() {
for font in [
StandardFont::Courier,
StandardFont::CourierBold,
StandardFont::CourierOblique,
StandardFont::CourierBoldOblique,
] {
let table = font.glyph_table();
for &(name, w) in table {
assert_eq!(w, 600, "Courier family glyph '{name}' has width {w} != 600");
}
}
}
#[test]
fn glyph_width_unknown_returns_none() {
assert_eq!(
StandardFont::Helvetica.glyph_width("nonexistentglyph_xyz"),
None
);
}
#[test]
fn notdef_width_is_zero_for_core14() {
for font in [
StandardFont::Helvetica,
StandardFont::TimesRoman,
StandardFont::Courier,
StandardFont::Symbol,
StandardFont::ZapfDingbats,
] {
assert_eq!(
font.notdef_width(),
0,
"notdef_width should be 0 for {font:?}"
);
}
}
#[test]
fn string_width_helvetica_av() {
let w = StandardFont::Helvetica.string_width(b"AV", 10.0);
assert!((w - 13.34).abs() < 1e-9, "Expected 13.34, got {w}");
}
#[test]
fn string_width_helvetica_space() {
let w = StandardFont::Helvetica.string_width(b" ", 1000.0);
assert!((w - 278.0).abs() < 1e-9, "Expected 278.0, got {w}");
}
#[test]
fn string_width_courier_any_glyph() {
let w = StandardFont::Courier.string_width(b"ABC", 1000.0);
assert!((w - 1800.0).abs() < 1e-9, "Expected 1800.0, got {w}");
}
#[test]
fn string_width_empty_is_zero() {
let w = StandardFont::Helvetica.string_width(b"", 12.0);
assert_eq!(w, 0.0);
}
#[test]
fn winansi_high_byte_anchors() {
let w = StandardFont::Helvetica.string_width(b"\x80", 1000.0);
assert!(w.is_finite());
let w2 = StandardFont::Helvetica.string_width(&[0xE9u8], 1000.0);
assert!(
(w2 - 556.0).abs() < 1e-9,
"Expected 556.0 for eacute, got {w2}"
);
let w3 = StandardFont::Helvetica.string_width(&[0x92u8], 1000.0);
assert!(
(w3 - 222.0).abs() < 1e-9,
"Expected 222.0 for quoteright (0x92), got {w3}"
);
let w4 = StandardFont::Helvetica.string_width(&[0x96u8], 1000.0);
assert!(w4.is_finite());
}
#[test]
fn winansi_undefined_slots_fallback_to_notdef() {
let helvetica = StandardFont::Helvetica;
for &b in &[0x81u8, 0x8Du8, 0x8Fu8, 0x90u8, 0x9Du8] {
let w = helvetica.string_width(&[b], 1000.0);
assert_eq!(
w, 0.0,
"Expected 0 for undefined WinAnsi byte 0x{b:02X}, got {w}"
);
}
}
#[test]
fn all_fonts_from_base_name_and_one_glyph() {
let cases = [
(b"Helv" as &[u8], StandardFont::Helvetica, "space", 278u16),
(b"HeBo", StandardFont::HelveticaBold, "space", 278),
(b"HeOb", StandardFont::HelveticaOblique, "space", 278),
(b"HeBO", StandardFont::HelveticaBoldOblique, "space", 278),
(b"TiRo", StandardFont::TimesRoman, "space", 250),
(b"TiBo", StandardFont::TimesBold, "space", 250),
(b"TiIt", StandardFont::TimesItalic, "space", 250),
(b"TiBI", StandardFont::TimesBoldItalic, "space", 250),
(b"Cour", StandardFont::Courier, "space", 600),
(b"CoBo", StandardFont::CourierBold, "space", 600),
(b"CoOb", StandardFont::CourierOblique, "space", 600),
(b"CoBO", StandardFont::CourierBoldOblique, "space", 600),
(b"Symb", StandardFont::Symbol, "space", 250),
(b"ZaDb", StandardFont::ZapfDingbats, "space", 278),
];
for (name_bytes, expected_variant, glyph, expected_width) in cases {
let resolved = StandardFont::from_base_name(name_bytes)
.unwrap_or_else(|| panic!("from_base_name failed for {:?}", name_bytes));
assert_eq!(resolved, expected_variant);
assert_eq!(
resolved.glyph_width(glyph),
Some(expected_width),
"glyph '{glyph}' width mismatch for {resolved:?}"
);
}
}
#[test]
fn glyph_tables_are_sorted() {
let all_fonts = [
StandardFont::Helvetica,
StandardFont::HelveticaBold,
StandardFont::HelveticaOblique,
StandardFont::HelveticaBoldOblique,
StandardFont::TimesRoman,
StandardFont::TimesBold,
StandardFont::TimesItalic,
StandardFont::TimesBoldItalic,
StandardFont::Courier,
StandardFont::CourierBold,
StandardFont::CourierOblique,
StandardFont::CourierBoldOblique,
StandardFont::Symbol,
StandardFont::ZapfDingbats,
];
for font in all_fonts {
let table = font.glyph_table();
assert!(
table.windows(2).all(|w| w[0].0 < w[1].0),
"glyph table for {font:?} is not strictly sorted by glyph name"
);
}
}
}