Home
last modified time | relevance | path

Searched refs:glyphSet (Results 1 – 25 of 30) sorted by relevance

12

/external/fonttools/Tests/pens/
DttGlyphPen_test.py22 glyphSet = font.getGlyphSet()
27 oldGlyph = glyphSet[name]
83 glyphSet = {}
84 pen = TTGlyphPen(glyphSet)
90 glyphSet[componentName] = _TestGlyph(pen.glyph())
143 glyphSet = {}
144 pen = TTGlyphPen(glyphSet)
150 glyphSet[componentName] = _TestGlyph(pen.glyph())
164 glyphSet = {}
165 pen = TTGlyphPen(glyphSet)
[all …]
DbasePen_test.py11 BasePen.__init__(self, glyphSet={})
137 pen.glyphSet["oslash"] = _TestGlyph()
/external/fonttools/Tests/ttLib/tables/
D_g_l_y_f_test.py228 glyphSet = {}
229 pen_dummy = TTGlyphPen(glyphSet)
231 glyphSet["A"] = glyph_dummy
232 glyphSet["B"] = glyph_dummy
233 pen_A = TTGlyphPen(glyphSet)
235 pen_B = TTGlyphPen(glyphSet)
239 glyphSet["A"] = glyph_A
240 glyphSet["B"] = glyph_B
242 glyph_A.getCoordinates(glyphSet)
245 glyphSet = {"dummy": TTGlyphPen(None).glyph()}
[all …]
/external/fonttools/Lib/fontTools/feaLib/
Dast.py159 def glyphSet(self): member in GlyphName
174 def glyphSet(self): member in GlyphClass
210 self.glyphs.extend(gc.glyphSet())
221 def glyphSet(self): member in GlyphClassName
222 return tuple(self.glyphclass.glyphSet())
235 def glyphSet(self): member in MarkClassName
236 return self.markClass.glyphSet()
364 def glyphSet(self): member in GlyphClassDefinition
365 return tuple(self.glyphs.glyphSet())
381 base = self.baseGlyphs.glyphSet() if self.baseGlyphs else tuple()
[all …]
Dparser.py722 if len(old) != 1 or len(old[0].glyphSet()) != 1:
741 glyphs = list(old[0].glyphSet())
742 replacements = list(new[0].glyphSet())
760 len(old) == 1 and len(old[0].glyphSet()) == 1 and
761 len(new) > 1 and max([len(n.glyphSet()) for n in new]) == 1 and
764 old_prefix, tuple(old[0].glyphSet())[0], old_suffix,
765 tuple([list(n.glyphSet())[0] for n in new]),
772 len(new[0].glyphSet()) == 1 and
776 list(new[0].glyphSet())[0], forceChain=hasMarks,
795 glyphs = sorted(list(old[0].glyphSet()))
[all …]
/external/fonttools/Lib/fontTools/voltLib/
Dast.py65 def glyphSet(self, groups=None): member in GroupDefinition
75 self.glyphs_ = self.enum.glyphSet(groups)
85 def glyphSet(self): member in GlyphName
96 for e in self.glyphSet():
99 def glyphSet(self, groups=None): member in Enum
103 glyphs.extend(element.glyphSet(groups))
105 glyphs.extend(element.glyphSet())
116 def glyphSet(self, groups=None): member in GroupName
119 self.glyphs_ = group.glyphSet(groups)
135 def glyphSet(self): member in Range
/external/fonttools/Lib/fontTools/pens/
DttGlyphPen.py38 def __init__(self, glyphSet, handleOverflowingTransforms=True): argument
39 self.glyphSet = glyphSet
112 if glyphName not in self.glyphSet:
121 self.glyphSet[glyphName].draw(tpen)
DbasePen.py165 def __init__(self, glyphSet): argument
170 self.glyphSet = glyphSet
177 glyph = self.glyphSet[glyphName]
196 def __init__(self, glyphSet=None): argument
197 super(BasePen, self).__init__(glyphSet)
DcocoaPen.py11 def __init__(self, glyphSet, path=None): argument
12 BasePen.__init__(self, glyphSet)
DqtPen.py11 def __init__(self, glyphSet, path=None): argument
12 BasePen.__init__(self, glyphSet)
DwxPen.py11 def __init__(self, glyphSet, path=None): argument
12 BasePen.__init__(self, glyphSet)
DreportLabPen.py14 def __init__(self, glyphSet, path=None): argument
15 BasePen.__init__(self, glyphSet)
Dt2CharStringPen.py47 def __init__(self, width, glyphSet, roundTolerance=0.5, CFF2=False): argument
48 super(T2CharStringPen, self).__init__(glyphSet)
DsvgPathPen.py12 def __init__(self, glyphSet): argument
13 BasePen.__init__(self, glyphSet)
DboundsPen.py25 def __init__(self, glyphSet, ignoreSinglePoints=False): argument
26 BasePen.__init__(self, glyphSet)
DpointInsidePen.py43 def __init__(self, glyphSet, testPoint, evenOdd=False): argument
44 BasePen.__init__(self, glyphSet)
/external/fonttools/Tests/feaLib/
Dparser_test.py19 return ' '.join(f(g.glyphSet()) for g in glyphs)
25 b.extend(a.glyphSet())
28 c.extend(a.glyphSet())
268 self.assertEqual(gc.glyphSet(), ("endash", "emdash", "figuredash"))
290 self.assertEqual(gc.glyphSet(), tuple())
294 self.assertEqual(foo.glyphSet(), ("a", "b"))
295 self.assertEqual(bar.glyphSet(), ("a", "b"))
303 self.assertEqual(doc.statements[-1].glyphSet(),
309 self.assertEqual(gc.glyphSet(), ("cid00999", "cid01000", "cid01001"))
320 self.assertEqual(gc.glyphSet(), ("X.swash", "Y.swash", "Z.swash"))
[all …]
/external/fonttools/Tests/ufoLib/
DUFO3_test.py4370 glyphSet = reader.getGlyphSet()
4372 glyphSet.readLayerInfo(info)
4384 glyphSet = reader.getGlyphSet()
4386 glyphSet.readLayerInfo(info)
4399 glyphSet = reader.getGlyphSet()
4401 self.assertRaises(UFOLibError, glyphSet.readLayerInfo, info)
4411 glyphSet = reader.getGlyphSet()
4413 self.assertRaises(GlifLibError, glyphSet.readLayerInfo, info)
4421 glyphSet = reader.getGlyphSet()
4422 self.assertRaises(GlifLibError, glyphSet.readLayerInfo, TestLayerInfoObject())
[all …]
DglifLib_test.py87 def myGlyphNameToFileName(glyphName, glyphSet): argument
88 return "prefix" + glyphNameToFileName(glyphName, glyphSet)
/external/fonttools/Tests/voltLib/
Dparser_test.py130 self.assertEqual((def_group.name, def_group.enum.glyphSet()),
209 self.assertEqual((def_group2.name, items[0].glyphSet(), items[1].group),
228 self.assertEqual((def_group.name, def_group.enum.glyphSet()),
/external/fonttools/Lib/fontTools/subset/
Dcff.py52 glyphSet = font.CharStrings
58 if g not in glyphSet:
60 gl = glyphSet[g]
/external/fonttools/Lib/fontTools/ufoLib/
DglifLib.py70 def __init__(self, glyphName, glyphSet): argument
72 self.glyphSet = glyphSet
85 self.glyphSet.readGlyph(self.glyphName, self, pointPen)
/external/skia/src/ports/
DSkFontHost_win.cpp397 GLYPHSET* glyphSet = in populate_glyph_to_unicode() local
399 if (GetFontUnicodeRanges(fontHdc, glyphSet) != glyphSetBufferSize) { in populate_glyph_to_unicode()
403 for (DWORD i = 0; i < glyphSet->cRanges; ++i) { in populate_glyph_to_unicode()
408 int count = glyphSet->ranges[i].cGlyphs; in populate_glyph_to_unicode()
413 chars[j] = glyphSet->ranges[i].wcLow + j; in populate_glyph_to_unicode()
/external/skqp/src/ports/
DSkFontHost_win.cpp382 GLYPHSET* glyphSet = in populate_glyph_to_unicode() local
384 if (GetFontUnicodeRanges(fontHdc, glyphSet) != glyphSetBufferSize) { in populate_glyph_to_unicode()
388 for (DWORD i = 0; i < glyphSet->cRanges; ++i) { in populate_glyph_to_unicode()
393 int count = glyphSet->ranges[i].cGlyphs; in populate_glyph_to_unicode()
398 chars[j] = glyphSet->ranges[i].wcLow + j; in populate_glyph_to_unicode()
/external/fonttools/Tests/ttLib/
Dwoff2_test.py900 glyphSet = {}
903 glyphSet[glyphName] = pen.glyph()
904 fb.setupGlyf(glyphSet)

12