⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 glnames.py

📁 qt-embedded-2.3.8.tar.gz源码
💻 PY
📖 第 1 页 / 共 4 页
字号:
#!/usr/bin/env python### FreeType 2 glyph name builder## Copyright 1996-2000 by# David Turner, Robert Wilhelm, and Werner Lemberg.## This file is part of the FreeType project, and may only be used, modified,# and distributed under the terms of the FreeType project license,# LICENSE.TXT.  By continuing to use, modify, or distribute this file you# indicate that you have read the license and understand and accept it# fully."""\usage: %s <output-file>  This very simple python script is used to generate the glyph names  tables defined in the PSNames module.  Its single argument is the name of the header file to be created."""import sys, string# This table is used to name the glyph according to the Macintosh# specification.  It is used by the TrueType Postscript names table#mac_standard_names = \[  # 0  ".notdef", ".null", "CR", "space", "exclam",  "quotedbl", "numbersign", "dollar", "percent", "ampersand",  # 10  "quotesingle", "parenleft", "parenright", "asterisk", "plus",  "comma", "hyphen", "period", "slash", "zero",  # 20  "one", "two", "three", "four", "five",  "six", "seven", "eight", "nine", "colon",  # 30  "semicolon", "less", "equal", "greater", "question",  "at", "A", "B", "C", "D",  # 40  "E", "F", "G", "H", "I",  "J", "K", "L", "M", "N",  # 50  "O", "P", "Q", "R", "S",  "T", "U", "V", "W", "X",  # 60  "Y", "Z", "bracketleft", "backslash", "bracketright",  "asciicircum", "underscore", "grave", "a", "b",  # 70  "c", "d", "e", "f", "g",  "h", "i", "j", "k", "l",  # 80  "m", "n", "o", "p", "q",  "r", "s", "t", "u", "v",  # 90  "w", "x", "y", "z", "braceleft",  "bar", "braceright", "asciitilde", "Adieresis", "Aring",  # 100  "Ccedilla", "Eacute", "Ntilde", "Odieresis", "Udieresis",  "aacute", "agrave", "acircumflex", "adieresis", "atilde",  # 110  "aring", "ccedilla", "eacute", "egrave", "ecircumflex",  "edieresis", "iacute", "igrave", "icircumflex", "idieresis",  # 120  "ntilde", "oacute", "ograve", "ocircumflex", "odieresis",  "otilde", "uacute", "ugrave", "ucircumflex", "udieresis",  # 130  "dagger", "degree", "cent", "sterling", "section",  "bullet", "paragraph", "germandbls", "registered", "copyright",  # 140  "trademark", "acute", "dieresis", "notequal", "AE",  "Oslash", "infinity", "plusminus", "lessequal", "greaterequal",  # 150  "yen", "mu", "partialdiff", "summation", "product",  "pi", "integral", "ordfeminine", "ordmasculine", "Omega",  # 160  "ae", "oslash", "questiondown", "exclamdown", "logicalnot",  "radical", "florin", "approxequal", "Delta", "guillemotleft",  # 170  "guillemotright", "ellipsis", "nbspace", "Agrave", "Atilde",  "Otilde", "OE", "oe", "endash", "emdash",  # 180  "quotedblleft", "quotedblright", "quoteleft", "quoteright", "divide",  "lozenge", "ydieresis", "Ydieresis", "fraction", "currency",  # 190  "guilsinglleft", "guilsinglright", "fi", "fl", "daggerdbl",  "periodcentered", "quotesinglbase", "quotedblbase", "perthousand",    "Acircumflex",  # 200  "Ecircumflex", "Aacute", "Edieresis", "Egrave", "Iacute",  "Icircumflex", "Idieresis", "Igrave", "Oacute", "Ocircumflex",  # 210  "apple", "Ograve", "Uacute", "Ucircumflex", "Ugrave",  "dotlessi", "circumflex", "tilde", "macron", "breve",  # 220  "dotaccent", "ring", "cedilla", "hungarumlaut", "ogonek",  "caron", "Lslash", "lslash", "Scaron", "scaron",  # 230  "Zcaron", "zcaron", "brokenbar", "Eth", "eth",  "Yacute", "yacute", "Thorn", "thorn", "minus",  # 240  "multiply", "onesuperior", "twosuperior", "threesuperior", "onehalf",  "onequarter", "threequarters", "franc", "Gbreve", "gbreve",  # 250  "Idot", "Scedilla", "scedilla", "Cacute", "cacute",  "Ccaron", "ccaron", "dmacron"]t1_standard_strings = \[  # 0  ".notdef", "space", "exclam", "quotedbl", "numbersign",  "dollar", "percent", "ampersand", "quoteright", "parenleft",  # 10  "parenright", "asterisk", "plus", "comma", "hyphen",  "period", "slash", "zero", "one", "two",  # 20  "three", "four", "five", "six", "seven",  "eight", "nine", "colon", "semicolon", "less",  # 30  "equal", "greater", "question", "at", "A",  "B", "C", "D", "E", "F",  # 40  "G", "H", "I", "J", "K",  "L", "M", "N", "O", "P",  # 50  "Q", "R", "S", "T", "U",  "V", "W", "X", "Y", "Z",  # 60  "bracketleft", "backslash", "bracketright", "asciicircum", "underscore",  "quoteleft", "a", "b", "c", "d",  # 70  "e", "f", "g", "h", "i",  "j", "k", "l", "m", "n",  # 80  "o", "p", "q", "r", "s",  "t", "u", "v", "w", "x",  # 90  "y", "z", "braceleft", "bar", "braceright",  "asciitilde", "exclamdown", "cent", "sterling", "fraction",  # 100  "yen", "florin", "section", "currency", "quotesingle",  "quotedblleft", "guillemotleft", "guilsinglleft", "guilsinglright", "fi",  # 110  "fl", "endash", "dagger", "daggerdbl", "periodcenter",  "paragraph", "bullet", "quotesinglbase", "quotedblbase", "quotedblright",  # 120  "guillemotright", "ellipsis", "perthousand", "questiondown", "grave",  "acute", "circumflex", "tilde", "macron", "breve",  # 130  "dotaccent", "dieresis", "ring", "cedilla", "hungarumlaut",  "ogonek", "caron", "emdash", "AE", "ordfeminine",  # 140  "Lslash", "Oslash", "OE", "ordmasculine", "ae",  "dotlessi", "Islash", "oslash", "oe", "germandbls",  # 150  "onesuperior", "logicalnot", "mu", "trademark", "Eth",  "onehalf", "plusminus", "Thorn", "onequarter", "divide",  # 160  "brokenbar", "degree", "thorn", "threequarters", "twosuperior",  "registered", "minus", "eth", "multiply", "threesuperior",  # 170  "copyright", "Aacute", "Acircumflex", "Adieresis", "Agrave",  "Aring", "Atilde", "Ccedilla", "Eacute", "Ecircumflex",  # 180  "Edieresis", "Egrave", "Iacute", "Icircumflex", "Idieresis",  "Igrave", "Ntilde", "Oacute", "Ocircumflex", "Odieresis",  # 190  "Ograve", "Otilde", "Scaron", "Uacute", "Ucircumflex",  "Udieresis", "Ugrave", "Yacute", "Ydieresis", "Zcaron",  # 200  "aacute", "acircumflex", "adieresis", "agrave", "aring",  "atilde", "ccedilla", "eacute", "ecircumflex", "edieresis",  # 210  "egrave", "iacute", "icircumflex", "idieresis", "igrave",  "ntilde", "oacute", "ocircumflex", "odieresis", "ograve",  # 220  "otilde", "scaron", "uacute", "ucircumflex", "udieresis",  "ugrave", "yacute", "ydieresis", "zcaron", "exclamsmall",  # 230  "Hungarumlautsmall", "dollaroldstyle", "dollarsuperior", "ampersandsmall",    "Acutesmall",  "parenleftsuperior", "parenrightsuperior", "twodotenleader",    "onedotenleader", "zerooldstyle",  # 240  "oneoldstyle", "twooldstyle", "threeoldstyle", "fouroldstyle",    "fiveoldstyle",  "sixoldstyle", "sevenoldstyle", "eightoldstyle", "nineoldstyle",    "commasuperior",  # 250  "threequartersemdash", "periodsuperior", "questionsmall", "asuperior",    "bsuperior",  "centsuperior", "dsuperior", "esuperior", "isuperior", "lsuperior",  # 260  "msuperior", "nsuperior", "osuperior", "rsuperior", "ssuperior",  "tsuperior", "ff", "ffi", "ffl", "parenleftinferior",  # 270  "parenrightinferior", "Circumflexsmall", "hyphensuperior", "Gravesmall",    "Asmall",  "Bsmall", "Csmall", "Dsmall", "Esmall", "Fsmall",  # 280  "Gsmall", "Hsmall", "Ismall", "Jsmall", "Ksmall",  "Lsmall", "Msmall", "Nsmall", "Osmall", "Psmall",  # 290  "Qsmall", "Rsmall", "Ssmall", "Tsmall", "Usmall",  "Vsmall", "Wsmall", "Xsmall", "Ysmall", "Zsmall",  # 300  "colonmonetary", "onefitted", "rupiah", "Tildesmall", "exclamdownsmall",  "centoldstyle", "Lslashsmall", "Scaronsmall", "Zcaronsmall",    "Dieresissmall",  # 310  "Brevesmall", "Caronsmall", "Dotaccentsmall", "Macronsmall", "figuredash",  "hypheninferior", "Ogoneksmall", "Ringsmall", "Cedillasmall",    "questiondownsmall",  # 320  "oneeighth", "threeeighths", "fiveeighths", "seveneighths", "onethird",  "twothirds", "zerosuperior", "foursuperior", "fivesuperior",    "sixsuperior",  # 330  "sevensuperior", "eightsuperior", "ninesuperior", "zeroinferior",    "oneinferior",  "twoinferior", "threeinferior", "fourinferior", "fiveinferior",    "sixinferior",  # 340  "seveninferior", "eightinferior", "nineinferior", "centinferior",    "dollarinferior",  "periodinferior", "commainferior", "Agravesmall", "Aacutesmall",    "Acircumflexsmall",  # 350  "Atildesmall", "Adieresissmall", "Aringsmall", "AEsmall", "Ccedillasmall",  "Egravesmall", "Eacutesmall", "Ecircumflexsmall", "Edieresissmall",    "Igravesmall",  # 360  "Iacutesmall", "Icircumflexsmall", "Idieresissmall", "Ethsmall",    "Ntildesmall",  "Ogravesmall", "Oacutesmall", "Ocircumflexsmall", "Otildesmall",    "Odieresissmall",  # 370  "OEsmall", "Oslashsmall", "Ugravesmall", "Uacautesmall",    "Ucircumflexsmall",  "Udieresissmall", "Yacutesmall", "Thornsmall", "Ydieresissmall",    "001.000",  # 380  "001.001", "001.002", "001.003", "Black", "Bold",  "Book", "Light", "Medium", "Regular", "Roman",  # 390  "Semibold"]t1_standard_encoding = \[    0,   0,   0,   0,   0,   0,   0,   0,   0,   0,    0,   0,   0,   0,   0,   0,   0,   0,   0,   0,    0,   0,   0,   0,   0,   0,   0,   0,   0,   0,    0,   0,   1,   2,   3,   4,   5,   6,   7,   8,    9,  10,  11,  12,  13,  14,  15,  16,  17,  18,   19,  20,  21,  22,  23,  24,  25,  26,  27,  28,   29,  30,  31,  32,  33,  34,  35,  36,  37,  38,   39,  40,  41,  42,  43,  44,  45,  46,  47,  48,   49,  50,  51,  52,  53,  54,  55,  56,  57,  58,   59,  60,  61,  62,  63,  64,  65,  66,  67,  68,   69,  70,  71,  72,  73,  74,  75,  76,  77,  78,   79,  80,  81,  82,  83,  84,  85,  86,  87,  88,   89,  90,  91,  92,  93,  94,  95,   0,   0,   0,    0,   0,   0,   0,   0,   0,   0,   0,   0,   0,    0,   0,   0,   0,   0,   0,   0,   0,   0,   0,    0,   0,   0,   0,   0,   0,   0,   0,   0,   0,    0,  96,  97,  98,  99, 100, 101, 102, 103, 104,  105, 106, 107, 108, 109, 110,   0, 111, 112, 113,  114,   0, 115, 116, 117, 118, 119, 120, 121, 122,    0, 123,   0, 124, 125, 126, 127, 128, 129, 130,  131,   0, 132, 133,   0, 134, 135, 136, 137,   0,    0,   0,   0,   0,   0,   0,   0,   0,   0,   0,    0,   0,   0,   0,   0, 138,   0, 139,   0,   0,    0,   0, 140, 141, 142, 143,   0,   0,   0,   0,    0, 144,   0,   0,   0, 145,   0,   0, 146, 147,  148, 149,   0,   0,   0,   0]t1_expert_encoding = \[    0,   0,   0,   0,   0,   0,   0,   0,   0,   0,    0,   0,   0,   0,   0,   0,   0,   0,   0,   0,    0,   0,   0,   0,   0,   0,   0,   0,   0,   0,    0,   0,   1, 229, 230,   0, 231, 232, 233, 234,  235, 236, 237, 238,  13,  14,  15,  99, 239, 240,  241, 242, 243, 244, 245, 246, 247, 248,  27,  28,  249, 250, 251, 252,   0, 253, 254, 255, 256, 257,    0,   0,   0, 258,   0,   0, 259, 260, 261, 262,    0,   0, 263, 264, 265,   0, 266, 109, 110, 267,  268, 269,   0, 270, 271, 272, 273, 274, 275, 276,  277, 278, 279, 280, 281, 282, 283, 284, 285, 286,  287, 288, 289, 290, 291, 292, 293, 294, 295, 296,  297, 298, 299, 300, 301, 302, 303,   0,   0,   0,    0,   0,   0,   0,   0,   0,   0,   0,   0,   0,    0,   0,   0,   0,   0,   0,   0,   0,   0,   0,    0,   0,   0,   0,   0,   0,   0,   0,   0,   0,    0, 304, 305, 306,   0,   0, 307, 308, 309, 310,  311,   0, 312,   0,   0, 312,   0,   0, 314, 315,    0,   0, 316, 317, 318,   0,   0,   0, 158, 155,  163, 319, 320, 321, 322, 323, 324, 325,   0,   0,  326, 150, 164, 169, 327, 328, 329, 330, 331, 332,  333, 334, 335, 336, 337, 338, 339, 340, 341, 342,  343, 344, 345, 346, 347, 348, 349, 350, 351, 352,  353, 354, 355, 356, 357, 358, 359, 360, 361, 362,  363, 364, 365, 366, 367, 368, 369, 370, 371, 372,  373, 374, 375, 376, 377, 378]# This data has been taken literally from the file `glyphlist.txt',# version 1.2, 22 Oct 1998.  It is available from##   http://partners.adobe.com/asn/developer/typeforum/unicodegn.html#adobe_glyph_list = """\0041;A;LATIN CAPITAL LETTER A00C6;AE;LATIN CAPITAL LETTER AE01FC;AEacute;LATIN CAPITAL LETTER AE WITH ACUTEF7E6;AEsmall;LATIN SMALL CAPITAL LETTER AE00C1;Aacute;LATIN CAPITAL LETTER A WITH ACUTEF7E1;Aacutesmall;LATIN SMALL CAPITAL LETTER A WITH ACUTE0102;Abreve;LATIN CAPITAL LETTER A WITH BREVE00C2;Acircumflex;LATIN CAPITAL LETTER A WITH CIRCUMFLEXF7E2;Acircumflexsmall;LATIN SMALL CAPITAL LETTER A WITH CIRCUMFLEXF6C9;Acute;CAPITAL ACUTE ACCENTF7B4;Acutesmall;SMALL CAPITAL ACUTE ACCENT00C4;Adieresis;LATIN CAPITAL LETTER A WITH DIAERESISF7E4;Adieresissmall;LATIN SMALL CAPITAL LETTER A WITH DIAERESIS00C0;Agrave;LATIN CAPITAL LETTER A WITH GRAVEF7E0;Agravesmall;LATIN SMALL CAPITAL LETTER A WITH GRAVE0391;Alpha;GREEK CAPITAL LETTER ALPHA0386;Alphatonos;GREEK CAPITAL LETTER ALPHA WITH TONOS0100;Amacron;LATIN CAPITAL LETTER A WITH MACRON0104;Aogonek;LATIN CAPITAL LETTER A WITH OGONEK00C5;Aring;LATIN CAPITAL LETTER A WITH RING ABOVE01FA;Aringacute;LATIN CAPITAL LETTER A WITH RING ABOVE AND ACUTEF7E5;Aringsmall;LATIN SMALL CAPITAL LETTER A WITH RING ABOVEF761;Asmall;LATIN SMALL CAPITAL LETTER A00C3;Atilde;LATIN CAPITAL LETTER A WITH TILDE

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -