/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | _h_m_t_x.py | 51 glyphName = glyphOrder[i] 56 "an (invalid) negative value?", glyphName, self.advanceName, 58 self.metrics[glyphName] = (advanceWidth, lsb) 61 glyphName = glyphOrder[i + numberOfMetrics] 62 self.metrics[glyphName] = (lastAdvance, sideBearings[i]) 67 for glyphName in ttFont.getGlyphOrder(): 68 advanceWidth, sideBearing = self.metrics[glyphName] 71 glyphName, self.advanceName)) 115 for glyphName in names: 116 advance, sb = self.metrics[glyphName] [all …]
|
D | _h_d_m_x.py | 81 for glyphName in glyphNames: 85 row.append(widths[glyphName]) 86 if ";" in glyphName: 87 glyphName = "\\x3b".join(glyphName.split(";")) 88 writer.write(format % ((glyphName,) + tuple(row))) 109 glyphName = line[0][:-1] 110 if "\\" in glyphName: 112 glyphName = safeEval('"""' + glyphName + '"""') 116 hdmx[ppems[i]][glyphName] = line[i]
|
D | C_O_L_R_.py | 105 glyphName = attrs["name"] 116 self.ColorLayers[glyphName] = layers 127 def __getitem__(self, glyphName): argument 128 if not isinstance(glyphName, str): 130 return self.ColorLayers[glyphName] 132 def __setitem__(self, glyphName, value): argument 133 if not isinstance(glyphName, str): 136 self.ColorLayers[glyphName] = value 137 elif glyphName in self.ColorLayers: 138 del self.ColorLayers[glyphName] [all …]
|
D | _p_o_s_t.py | 107 glyphName = psName = self.glyphOrder[i] 108 if glyphName == "": 109 glyphName = "glyph%.5d" % i 110 if glyphName in allNames: 112 n = allNames[glyphName] 113 while (glyphName + "#" + str(n)) in allNames: 115 allNames[glyphName] = n + 1 116 glyphName = glyphName + "#" + str(n) 118 self.glyphOrder[i] = glyphName 119 allNames[glyphName] = 1 [all …]
|
D | _g_v_a_r.py | 83 for glyphName in ttFont.getGlyphOrder(): 84 glyph = ttFont["glyf"][glyphName] 86 variations = self.variations.get(glyphName, []) 103 glyphName = glyphs[i] 104 glyph = ttFont["glyf"][glyphName] 108 self.variations[glyphName] = decompileGlyph_( 113 glyphName, numPointsInGlyph, 167 for glyphName in ttFont.getGlyphNames(): 168 variations = self.variations.get(glyphName) 171 writer.begintag("glyphVariations", glyph=glyphName) [all …]
|
D | sbixGlyph.py | 23 …def __init__(self, glyphName=None, referenceGlyphName=None, originOffsetX=0, originOffsetY=0, grap… argument 25 self.glyphName = glyphName 45 self.glyphName = ttFont.getGlyphName(self.gid) 69 if self.glyphName is None: 74 self.gid = struct.pack(">H", ttFont.getGlyphID(self.glyphName)) 85 xmlWriter.simpletag("glyph", name=self.glyphName) 90 name=self.glyphName,
|
D | sbixStrike.py | 60 self.glyphs[current_glyph.glyphName] = current_glyph 73 for glyphName in glyphOrder: 74 if glyphName in self.glyphs: 76 current_glyph = self.glyphs[glyphName] 79 current_glyph = Glyph(glyphName=glyphName) 135 glyphName=myGlyphName, 145 self.glyphs[current_glyph.glyphName] = current_glyph
|
D | _g_l_y_f.py | 66 glyphName = glyphOrder[i] 69 glyphName = 'ttxautoglyph%s' % i 75 self.glyphs[glyphName] = glyph 96 for glyphName in self.glyphOrder: 97 glyph = self.glyphs[glyphName] 147 for glyphName in glyphNames: 148 if glyphName not in self: 149 log.warning("glyph '%s' does not exist in glyf table", glyphName) 151 glyph = self[glyphName] 155 tostr(glyphName, 'utf-8'), [all …]
|
D | V_O_R_G_.py | 68 for glyphName in glyphNames: 70 gid = ttFont.getGlyphID(glyphName) 72 assert 0, "VORG table contains a glyph name not in ttFont.getGlyphNames(): " + str(glyphName) 73 vOriginTable.append([gid, glyphName, self.VOriginRecords[glyphName]]) 90 self.VOriginRecords[vOriginRec.glyphName] = vOriginRec.vOrigin 120 self.glyphName = name 126 writer.simpletag("glyphName", value=self.glyphName)
|
D | T_S_I__5.py | 34 for glyphName in names: 35 writer.simpletag("glyphgroup", name=glyphName, value=self.glyphGrouping[glyphName])
|
D | E_B_D_T_.py | 165 glyphName = attrs['name'] 169 …assert glyphName not in bitmapGlyphDict, "Duplicate glyphs with the same name '%s' in the same str… 170 bitmapGlyphDict[glyphName] = curGlyph 259 def _writeRawImageData(strikeIndex, glyphName, bitmapObject, writer, ttFont): argument 269 def _writeRowImageData(strikeIndex, glyphName, bitmapObject, writer, ttFont): argument 300 def _writeBitwiseImageData(strikeIndex, glyphName, bitmapObject, writer, ttFont): argument 343 def _writeExtFileImageData(strikeIndex, glyphName, bitmapObject, writer, ttFont): argument 350 filename = glyphName + bitmapObject.fileExtension 412 def toXML(self, strikeIndex, glyphName, writer, ttFont): argument 413 writer.begintag(self.__class__.__name__, [('name', glyphName)]) [all …]
|
/external/fonttools/Tests/ufoLib/ |
D | glifLib_test.py | 34 for glyphName in src.keys(): 35 g = src[glyphName] 37 dst.writeGlyph(glyphName, g, g.drawPoints) 39 for glyphName in sorted(src.keys()): 40 fileName = src.contents[glyphName] 55 "%s.glif file differs after round tripping" % glyphName) 88 for glyphName in src.keys(): 89 g = src[glyphName] 91 dst.writeGlyph(glyphName, g, g.drawPoints) 100 def myGlyphNameToFileName(glyphName, glyphSet): argument [all …]
|
/external/fonttools/Lib/fontTools/ttLib/ |
D | removeOverlaps.py | 26 def skPathFromGlyph(glyphName: str, glyphSet: _TTGlyphMapping) -> pathops.Path: 29 glyphSet[glyphName].draw(pathPen) 80 glyphName: str, 86 glyph = glyfTable[glyphName] 93 path = skPathFromGlyph(glyphName, glyphSet) 100 glyfTable[glyphName] = glyph = ttfGlyphFromSkPath(path2) 104 width, lsb = hmtxTable[glyphName] 106 hmtxTable[glyphName] = (width, glyph.xMin) 161 for glyphName in glyphNames: 163 glyphName, glyphSet, glyfTable, hmtxTable, removeHinting [all …]
|
D | ttFont.py | 509 glyphName = self._makeGlyphName(min(reversecmap[tempName])) 510 numUses = useCount[glyphName] = useCount.get(glyphName, 0) + 1 512 glyphName = "%s.alt%d" % (glyphName, numUses - 1) 513 glyphOrder[i] = glyphName 558 glyphName = self.VIDDict[glyphID] 560 glyphName ="glyph%.5d" % glyphID 562 self.reverseVIDDict[glyphName] = glyphID 563 self.VIDDict[glyphID] = glyphName 564 return glyphName 566 def getGlyphID(self, glyphName, requireReal=False): argument [all …]
|
D | woff2.py | 724 for glyphID, glyphName in enumerate(self.glyphOrder): 726 glyphs[glyphName] = glyph 880 glyphName = self.getGlyphName(glyphID) 881 glyph = self[glyphName] 1018 for i, glyphName in enumerate(glyphOrder): 1021 glyph = glyfTable[glyphName] 1035 for i, glyphName in enumerate(glyphOrder): 1038 glyph = glyfTable[glyphName] 1047 glyphName = glyphOrder[i] 1049 self.metrics[glyphName] = (advanceWidth, lsb) [all …]
|
/external/fonttools/Snippets/ |
D | interpolate.py | 71 for glyphName in regular.getGlyphOrder(): 72 regularCoord = GetCoordinates(regular, glyphName) 73 thinCoord = GetCoordinates(thin, glyphName) 74 blackCoord = GetCoordinates(black, glyphName) 77 glyphName) 82 "control points in all input fonts", glyphName) 92 gvar.variations[glyphName] = [thinVar, blackVar] 95 def GetCoordinates(font, glyphName): argument 102 glyph = glyphTable.glyphs.get(glyphName) 112 horizontalAdvanceWidth, leftSideBearing = font["hmtx"].metrics[glyphName]
|
D | decompose-ttf.py | 32 for glyphName in glyphSet.keys(): 33 if not glyfTable[glyphName].isComposite(): 38 glyphSet[glyphName].draw(dcPen) 51 glyfTable[glyphName] = ttPen.glyph()
|
/external/fonttools/Lib/fontTools/ufoLib/ |
D | glifLib.py | 92 def __init__(self, glyphName, glyphSet): argument 93 self.glyphName = glyphName 107 self.glyphSet.readGlyph(self.glyphName, self, pointPen) 321 def getGLIF(self, glyphName): argument 333 fileName = self.contents[glyphName] 339 "does not exist on %s" % (fileName, glyphName, self.fs) 342 def getGLIFModificationTime(self, glyphName): argument 350 fileName = self.contents[glyphName] 355 def readGlyph(self, glyphName, glyphObject=None, pointPen=None, validate=None): argument 391 text = self.getGLIF(glyphName) [all …]
|
/external/fonttools/Lib/fontTools/pens/ |
D | ttGlyphPen.py | 110 def addComponent(self, glyphName, transformation): argument 111 self.components.append((glyphName, transformation)) 118 for (glyphName, transformation) in self.components 121 for glyphName, transformation in self.components: 122 if glyphName not in self.glyphSet: 124 "skipped non-existing component '%s'", glyphName 131 self.glyphSet[glyphName].draw(tpen) 135 component.glyphName = glyphName
|
D | basePen.py | 111 glyphName: str, 145 def addComponent(self, glyphName, transformation): argument 182 def addComponent(self, glyphName, transformation): argument 187 glyph = self.glyphSet[glyphName] 190 raise MissingComponentError(glyphName) 192 "glyph '%s' is missing from glyphSet; skipped" % glyphName)
|
D | pointPen.py | 233 def addComponent(self, glyphName, transform, identifier=None, **kwargs): argument 235 self.pen.addComponent(glyphName, transform) 301 def addComponent(self, glyphName, transform): argument 303 self.pen.addComponent(glyphName, transform) 372 def addComponent(self, glyphName, transformation, identifier=None, **kwargs): argument 376 self._outPen.addComponent(glyphName, transformation, **kwargs) 456 def addComponent(self, glyphName, transform, identifier=None, **kwargs): argument 458 self.pen.addComponent(glyphName, transform, identifier=identifier, **kwargs)
|
D | reportLabPen.py | 49 glyphName = sys.argv[2] variable 53 imageFile = "%s.png" % glyphName 58 g = gs[glyphName]
|
/external/fonttools/Lib/fontTools/ |
D | agl.py | 5084 glyphName = tostr(m.group(1)) 5085 LEGACY_AGL2UV[glyphName] = unicodes 5100 glyphName = tostr(m.group(2)) 5101 AGL2UV[glyphName] = unicode 5102 UV2AGL[unicode] = glyphName
|
D | fontBuilder.py | 419 for unicodeValue, variationSelector, glyphName in uvs: 420 if cmapping.get(unicodeValue) == glyphName: 422 glyphName = None 425 uvsDict[variationSelector].append((unicodeValue, glyphName)) 492 gs[glyphName].width 493 for glyphName in gs.keys() 494 if gs[glyphName].width > 0 549 for glyphName, charString in charStringsDict.items(): 552 charStrings[glyphName] = charString 607 for glyphName, charString in charStringsDict.items(): [all …]
|
/external/fonttools/Tests/ttLib/tables/ |
D | _g_l_y_f_test.py | 349 glyfTable.glyphs = {glyphName: Glyph() for glyphName in font.getGlyphOrder()} 438 comp1.glyphName = "a" 446 comp2.glyphName = "a" 503 comp.glyphName = "a" 513 comp.glyphName = "a" 524 comp.glyphName = "a" 536 comp.glyphName = "a" 553 assert comp.glyphName == "a" 565 assert comp.glyphName == "a" 585 assert comp.glyphName == "a" [all …]
|