/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | _p_o_s_t.py | 67 glyphOrder = self.glyphOrder 68 del self.glyphOrder 69 return glyphOrder 72 self.glyphOrder = standardGlyphOrder[:ttFont["maxp"].numGlyphs] 89 self.glyphOrder = glyphOrder = [""] * int(ttFont['maxp'].numGlyphs) 100 glyphOrder[glyphID] = name 107 glyphName = psName = self.glyphOrder[i] 118 self.glyphOrder[i] = glyphName 128 self.glyphOrder = None 138 self.glyphOrder = glyphOrder = [''] * int(numGlyphs) [all …]
|
D | sbixStrike.py | 69 glyphOrder = ttFont.getGlyphOrder() 72 …lyphDataOffset = sbixStrikeHeaderFormatSize + sbixGlyphDataOffsetFormatSize * (len(glyphOrder) + 1) 73 for glyphName in glyphOrder: 103 glyphOrder = ttFont.getGlyphOrder() 104 for i in range(len(glyphOrder)): 105 if glyphOrder[i] in self.glyphs: 106 self.glyphs[glyphOrder[i]].toXML(xmlWriter, ttFont)
|
D | _h_d_m_x.py | 36 glyphOrder = ttFont.getGlyphOrder() 50 glyphOrder = ttFont.getGlyphOrder() 58 for glyphID in range(len(glyphOrder)): 59 width = widths[glyphOrder[glyphID]]
|
D | _h_m_t_x.py | 49 glyphOrder = ttFont.getGlyphOrder() 51 glyphName = glyphOrder[i] 61 glyphName = glyphOrder[i + numberOfMetrics]
|
D | otTables.py | 529 glyphOrder = font.getGlyphOrder() 556 endID = len(glyphOrder) 557 glyphs.extend(glyphOrder[glyphID] for glyphID in range(startID, endID)) 629 glyphOrder = font.getGlyphOrder() 631 mapList.extend([mapList[-1]] * (len(glyphOrder) - len(mapList))) 632 self.mapping = dict(zip(glyphOrder, mapList)) 639 glyphOrder = font.getGlyphOrder() 640 mapping = [mapping[g] for g in glyphOrder] 885 glyphOrder = font.getGlyphOrder() 894 startID = len(glyphOrder) [all …]
|
D | _g_l_y_f.py | 63 self.glyphOrder = glyphOrder = ttFont.getGlyphOrder() 66 glyphName = glyphOrder[i] 89 self.glyphOrder = ttFont.getGlyphOrder() 96 for glyphName in self.glyphOrder: 202 self.glyphOrder = ttFont.getGlyphOrder() 217 def setGlyphOrder(self, glyphOrder): argument 218 self.glyphOrder = glyphOrder 221 return self.glyphOrder[glyphID] 225 return self.glyphOrder.index(glyphName) 246 if glyphName not in self.glyphOrder: [all …]
|
D | _k_e_r_n.py | 145 glyphOrder = ttFont.getGlyphOrder() 151 kernTable[(glyphOrder[left], glyphOrder[right])] = value
|
D | V_O_R_G_.py | 29 glyphOrder = ttFont.getGlyphOrder() 31 names = [glyphOrder[gid] for gid in gids]
|
D | C_F_F_.py | 35 def setGlyphOrder(self, glyphOrder): argument
|
/external/fonttools/Lib/fontTools/ttLib/ |
D | ttFont.py | 430 def setGlyphOrder(self, glyphOrder): argument 431 self.glyphOrder = glyphOrder 435 return self.glyphOrder 440 self.glyphOrder = cff.getGlyphOrder() 443 glyphOrder = self['post'].getGlyphOrder() 444 if glyphOrder is None: 452 self.glyphOrder = glyphOrder 455 return self.glyphOrder 486 glyphOrder = [None] * numGlyphs 487 glyphOrder[0] = ".notdef" [all …]
|
D | woff2.py | 711 self.glyphOrder = ttFont.getGlyphOrder() 713 self.glyphOrder = None 714 if self.glyphOrder is None: 715 self.glyphOrder = [".notdef"] 716 self.glyphOrder.extend(["glyph%.5d" % i for i in range(1, self.numGlyphs)]) 718 if len(self.glyphOrder) != self.numGlyphs: 721 (len(self.glyphOrder), self.numGlyphs)) 724 for glyphID, glyphName in enumerate(self.glyphOrder): 731 assert len(self.glyphOrder) == self.numGlyphs 999 glyphOrder = glyfTable.glyphOrder [all …]
|
/external/fonttools/Tests/cffLib/ |
D | cffLib_test.py | 99 glyphOrder = font.getGlyphOrder() 100 self.assertEqual(len(glyphOrder), len(set(glyphOrder))) 107 glyphOrder = font2.getGlyphOrder() 108 self.assertEqual(len(glyphOrder), len(set(glyphOrder)))
|
/external/fonttools/Tests/ttLib/tables/ |
D | T_S_I__1_test.py | 36 font.glyphOrder = [chr(i) for i in range(ch, ch+n)] 44 font.glyphOrder = [] 97 empty_font.glyphOrder = ['a'] 107 empty_font.glyphOrder = ['foo', 'bar'] 134 empty_font.glyphOrder = ['foo', 'bar']
|
D | _h_m_t_x_test.py | 29 font.glyphOrder = [chr(i) for i in range(65, 65+numGlyphs)] 111 font.glyphOrder = ["A", "B", "C"] 198 font.glyphOrder = [chr(i) for i in range(65, 68)]
|
/external/fonttools/Snippets/ |
D | otf2ttf.py | 52 glyphOrder = ttFont.getGlyphOrder() 56 glyf.glyphOrder = glyphOrder 80 post.glyphOrder = glyphOrder
|
/external/fonttools/Lib/fontTools/varLib/ |
D | mutator.py | 63 def interpolate_cff2_charstrings(topDict, interpolateFromDeltas, glyphOrder): argument 65 for gname in glyphOrder: 105 def interpolate_cff2_metrics(varfont, topDict, glyphOrder, loc): argument 113 boundsPen = BoundsPen(glyphOrder) 121 for gid, gname in enumerate(glyphOrder): 228 glyphOrder = varfont.getGlyphOrder() 235 interpolate_cff2_charstrings(topDict, interpolateFromDeltas, glyphOrder) 236 interpolate_cff2_metrics(varfont, topDict, glyphOrder, loc)
|
D | __init__.py | 406 glyphOrder = font.getGlyphOrder() 421 masterModel, master_ttfs, axisTags, glyphOrder, advMetricses, 438 axisTags, glyphOrder, advMetricses, vOrigMetricses=None): argument 442 for glyph in glyphOrder: 450 for glyph in glyphOrder: 465 for glyphName in glyphOrder: 473 for glyphName in glyphOrder: 480 for glyphName in glyphOrder: 487 advMapping = [mapping2[advMapping[g]] for g in glyphOrder] 488 advanceMapping = builder.buildVarIdxMap(advMapping, glyphOrder) [all …]
|
D | cff.py | 301 glyphOrder = default_font.getGlyphOrder() 303 gname_mapping[glyphOrder[gid]] = fdIndex 324 def merge_region_fonts(varFont, model, ordered_fonts_list, glyphOrder): argument 331 cvData = merge_charstrings(glyphOrder, num_masters, top_dicts, model) 357 def merge_charstrings(glyphOrder, num_masters, top_dicts, masterModel): argument 364 for gid, gname in enumerate(glyphOrder):
|
D | builder.py | 104 def buildVarIdxMap(varIdxes, glyphOrder): argument 106 self.mapping = {g:v for g,v in zip(glyphOrder, varIdxes)}
|
/external/fonttools/Tests/ |
D | merge_test.py | 129 glyphOrder = [".notdef", "a"] 131 glyphs = {gn: Glyph() for gn in glyphOrder} 132 hmtx = {gn: (500, 0) for gn in glyphOrder} 136 fb.setupGlyphOrder(glyphOrder)
|
/external/fonttools/Tests/varLib/instancer/ |
D | instancer_test.py | 625 def makeTTFont(glyphOrder, features): argument 627 font.setGlyphOrder(glyphOrder) 654 def makeParametrizedVF(glyphOrder, features, values, increments): argument 679 master = makeTTFont(glyphOrder, features=features % tuple(values)) 693 glyphOrder = [".notdef", "f", "i", "f_i"] 700 return makeParametrizedVF(glyphOrder, features, values, increments) 705 glyphOrder = [".notdef", "V", "A"] 709 return makeParametrizedVF(glyphOrder, features, values, increments) 714 glyphOrder = [".notdef", "V", "A", "acutecomb"] 726 return makeParametrizedVF(glyphOrder, features, values, increments) [all …]
|
/external/fonttools/Tests/fontBuilder/ |
D | fontBuilder_test.py | 324 glyphOrder = [".notdef", "space", "zero", "zero.slash"] 330 metrics = {gn: (600, 0) for gn in glyphOrder} 333 glyphs = {gn: glyph for gn in glyphOrder} 336 fb.setupGlyphOrder(glyphOrder)
|
/external/fonttools/Lib/fontTools/varLib/instancer/ |
D | __init__.py | 376 glyf.glyphOrder, 445 def _remapVarIdxMap(table, attrName, varIndexMapping, glyphOrder): argument 447 newMapping = [varIndexMapping[oldMapping[glyphName]] for glyphName in glyphOrder] 448 setattr(table, attrName, builder.buildVarIdxMap(newMapping, glyphOrder)) 476 glyphOrder = varfont.getGlyphOrder() 477 _remapVarIdxMap(vhvar, tableFields.advMapping, varIndexMapping, glyphOrder) 479 _remapVarIdxMap(vhvar, tableFields.sb1, varIndexMapping, glyphOrder) 481 _remapVarIdxMap(vhvar, tableFields.sb2, varIndexMapping, glyphOrder) 484 vhvar, tableFields.vOrigMapping, varIndexMapping, glyphOrder
|
/external/fonttools/Lib/fontTools/ |
D | fontBuilder.py | 376 def setupGlyphOrder(self, glyphOrder): argument 378 self.font.setGlyphOrder(glyphOrder) 651 self.font["glyf"].glyphOrder = self.font.glyphOrder
|
D | merge.py | 1008 for font,glyphOrder in zip(fonts, glyphOrders): 1009 font.setGlyphOrder(glyphOrder) 1055 for glyphOrder in glyphOrders: 1056 for i,glyphName in enumerate(glyphOrder): 1063 glyphOrder[i] = glyphName
|