/external/fonttools/Lib/fontTools/ttLib/tables/ |
_h_m_t_x.py | 38 glyphName = glyphOrder[i] 39 self.metrics[glyphName] = list(metrics[i*2:i*2+2]) 42 glyphName = glyphOrder[i + numberOfMetrics] 43 self.metrics[glyphName] = [lastAdvance, sideBearings[i]] 47 for glyphName in ttFont.getGlyphOrder(): 48 metrics.append(self.metrics[glyphName]) 78 for glyphName in names: 79 advance, sb = self.metrics[glyphName] 81 ("name", glyphName), 94 def __delitem__(self, glyphName) [all...] |
sbixBitmap.py | 19 def __init__(self, glyphName=None, referenceGlyphName=None, usReserved1=0, usReserved2=0, imageFormatTag=None, imageData=None, rawdata=None, gid=0): 21 self.glyphName = glyphName 30 self.glyphName = ttFont.getGlyphName(self.gid) 54 if self.glyphName is None: 59 self.gid = struct.pack(">H", ttFont.getGlyphID(self.glyphName)) 70 xmlWriter.simpletag("bitmap", glyphname=self.glyphName) 73 xmlWriter.begintag("bitmap", format=self.imageFormatTag, glyphname=self.glyphName) [all...] |
_h_d_m_x.py | 64 for glyphName in glyphNames: 68 row.append(widths[glyphName]) 69 if ";" in glyphName: 70 glyphName = "\\x3b".join(glyphName.split(";")) 71 writer.write(format % ((glyphName,) + tuple(row))) 92 glyphName = line[0][:-1] 93 if "\\" in glyphName: 95 glyphName = safeEval('"""' + glyphName + '"""' [all...] |
C_O_L_R_.py | 16 ttFont['COLR'][<glyphName>] will return the color layers for any glyph 17 ttFont['COLR'][<glyphName>] = <value> will set the color layers for any glyph. 59 for glyphName in glyphNames: 61 gid = ttFont.getGlyphID(glyphName) 63 assert 0, "COLR table contains a glyph name not in ttFont.getGlyphNames(): " + str(glyphName) 64 ordered.append([gid, glyphName, self.ColorLayers[glyphName]]) 69 for (gid, glyphName, layers) in ordered: 85 for glyphName in glyphNames: 87 gid = ttFont.getGlyphID(glyphName) [all...] |
T_S_I__5.py | 33 for glyphName in names: 34 writer.simpletag("glyphgroup", name=glyphName, value=self.glyphGrouping[glyphName])
|
V_O_R_G_.py | 12 ttFont['VORG'][<glyphName>] will return the vertical origin for any glyph 13 ttFont['VORG'][<glyphName>] = <value> will set the vertical origin for any glyph. 71 for glyphName in glyphNames: 73 gid = ttFont.getGlyphID(glyphName) 75 assert 0, "VORG table contains a glyph name not in ttFont.getGlyphNames(): " + str(glyphName) 76 vOriginTable.append([gid, glyphName, self.VOriginRecords[glyphName]]) 93 self.VOriginRecords[vOriginRec.glyphName] = vOriginRec.vOrigin 124 self.glyphName = name 130 writer.simpletag("glyphName", value=self.glyphName [all...] |
sbixBitmapSet.py | 59 self.bitmaps[myBitmap.glyphName] = myBitmap 71 for glyphName in glyphOrder: 72 if glyphName in self.bitmaps: 74 myBitmap = self.bitmaps[glyphName] 77 myBitmap = Bitmap(glyphName=glyphName) 124 if "glyphname" in attrs: 125 myGlyphName = attrs["glyphname"] 129 myBitmap = Bitmap(glyphName=myGlyphName, imageFormatTag=myFormat) 135 self.bitmaps[myBitmap.glyphName] = myBitma [all...] |
_p_o_s_t.py | 112 glyphName = psName = self.glyphOrder[i] 113 if glyphName in allNames: 114 # make up a new glyphName that's unique 115 n = allNames[glyphName] 116 allNames[glyphName] = n + 1 117 glyphName = glyphName + "#" + repr(n) 118 self.glyphOrder[i] = glyphName 119 mapping[glyphName] = psName 121 allNames[glyphName] = [all...] |
otTables.py | 88 glyphIDs = [getGlyphID(glyphName) for glyphName in glyphs ] 125 for glyphName in getattr(self, "glyphs", []): 126 xmlWriter.simpletag("Glyph", value=glyphName) 279 glyphName, cls = items[i] 280 items[i] = getGlyphID(glyphName), glyphName, cls 285 for glyphID, glyphName, cls in items[1:]: 288 ranges.append([cls, glyphID, glyphName]) 290 lastName = glyphName [all...] |
_g_l_y_f.py | 42 glyphName = glyphOrder[i] 45 glyphName = 'ttxautoglyph%s' % i 51 self.glyphs[glyphName] = glyph 68 for glyphName in self.glyphOrder: 69 glyph = self.glyphs[glyphName] 90 for glyphName in glyphNames: 92 progress.setLabel("Dumping 'glyf' table... (%s)" % glyphName) 95 glyph = self[glyphName] 98 ("name", glyphName), 109 writer.simpletag('TTGlyph', name=glyphName) [all...] |
E_B_D_T_.py | 162 glyphName = attrs['name'] 166 assert glyphName not in bitmapGlyphDict, "Duplicate glyphs with the same name '%s' in the same strike." % glyphName 167 bitmapGlyphDict[glyphName] = curGlyph 256 def _writeRawImageData(strikeIndex, glyphName, bitmapObject, writer, ttFont): 266 def _writeRowImageData(strikeIndex, glyphName, bitmapObject, writer, ttFont): 297 def _writeBitwiseImageData(strikeIndex, glyphName, bitmapObject, writer, ttFont): 340 def _writeExtFileImageData(strikeIndex, glyphName, bitmapObject, writer, ttFont): 342 filename = glyphName + bitmapObject.fileExtension 370 # when the extfile option is turned on files have the form: glyphName.ex [all...] |
_m_a_x_p.py | 77 for glyphName in ttFont.getGlyphOrder(): 78 g = glyfTable[glyphName] 80 if hmtxTable[glyphName][1] != g.xMin:
|
/external/fonttools/Lib/fontTools/pens/ |
reportLabPen.py | 38 print("Usage: reportLabPen.py <OTF/TTF font> <glyphname> [<image file to create>]") 39 print(" If no image file name is created, by default <glyphname>.png is created.") 48 glyphName = sys.argv[2] 52 imageFile = "%s.png" % glyphName 57 g = gs[glyphName]
|
transformPen.py | 54 def addComponent(self, glyphName, transformation): 56 self._outPen.addComponent(glyphName, transformation)
|
basePen.py | 108 def addComponent(self, glyphName, transformation): 140 def addComponent(self, glyphName, transformation): 189 def addComponent(self, glyphName, transformation): 195 glyph = self.glyphSet[glyphName]
|
/external/fonttools/Lib/fontTools/ttLib/ |
__init__.py | 113 and does not exist in the font, or the glyphname has the form glyphN 504 glyphName = agl.UV2AGL[unicode] 507 glyphName = "uni%04X" % unicode 508 tempName = glyphName 511 tempName = glyphName + "#" + repr(n) 549 glyphName = self.VIDDict[glyphID] 551 glyphName ="glyph%.5d" % glyphID 553 self.reverseVIDDict[glyphName] = glyphID 554 self.VIDDict[glyphID] = glyphName 555 return glyphName [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/fonts/ |
SVGGlyph.h | 82 && glyphName == other.glyphName 97 String glyphName;
|
/external/chromium_org/third_party/WebKit/Source/core/svg/ |
SVGGlyphMap.h | 86 if (!lastGlyph.glyphName.isEmpty()) 87 m_namedGlyphs.add(lastGlyph.glyphName, lastGlyph.tableEntry); 181 const SVGGlyph& glyphIdentifierForGlyphName(const String& glyphName) const 183 return svgGlyphForGlyph(m_namedGlyphs.get(glyphName));
|
SVGGlyphRefElement.cpp | 43 bool SVGGlyphRefElement::hasValidGlyphElement(AtomicString& glyphName) const 47 Element* element = targetElementFromIRIString(getAttribute(XLinkNames::hrefAttr), document(), &glyphName);
|
SVGGlyphRefElement.h | 36 bool hasValidGlyphElement(AtomicString& glyphName) const;
|
SVGGlyphElement.cpp | 148 identifier.glyphName = fastGetAttribute(SVGNames::glyph_nameAttr);
|
SVGFontElement.cpp | 236 // FIXME: We only support glyphName -> single glyph mapping so far.
|
/external/fonttools/Lib/fontTools/ |
afmLib.py | 278 def addComposite(self, glyphName, components): 279 self._composites[glyphName] = components
|
t1Lib.py | 91 for glyphName, charString in charStrings.items(): 93 charStrings[glyphName] = psCharStrings.T1CharString(charString[lenIV:],
|
agl.py | 729 glyphName = m.group(2) 730 if glyphName in AGL2UV: 732 assert AGL2UV[glyphName] == unicode 734 AGL2UV[glyphName] = unicode 735 UV2AGL[unicode] = glyphName
|