Home
last modified time | relevance | path

Searched refs:topDict (Results 1 – 13 of 13) sorted by relevance

/external/fonttools/Tests/cffLib/
DcffLib_test.py13 topDict = TopDict()
14 topDict.CharStrings = CharStrings(None, None, None, PrivateDict(), None, None)
15 topDict.CharStrings.fromXML(None, None, parseXML("""
30 topDict.recalcFontBBox()
31 self.assertEqual(topDict.FontBBox, [-56, -100, 300, 200])
34 topDict = TopDict()
35 topDict.CharStrings = CharStrings(None, None, None, PrivateDict(), None, None)
36 topDict.CharStrings.fromXML(None, None, parseXML("""
45 topDict.recalcFontBBox()
46 self.assertEqual(topDict.FontBBox, [0, 0, 0, 0])
[all …]
Dspecializer_test.py928 topDict = ttf_font['CFF2'].cff.topDictIndex[0]
929 charstrings = topDict.CharStrings
949 topDict = ttf_font['CFF2'].cff.topDictIndex[0]
950 charstrings = topDict.CharStrings
/external/fonttools/Lib/fontTools/varLib/
Dcff.py41 topDict = varFont['CFF2'].cff.topDictIndex[0]
42 topDict.VarStore = VarStoreData(otVarStore=varStoreCFFV)
43 if topDict.FDArray[0].vstore is None:
44 fdArray = topDict.FDArray
47 fontDict.Private.vstore = topDict.VarStore
56 topDict = topDictData[0]
57 if hasattr(topDict, 'Private'):
58 privateDict = topDict.Private
62 topDict.order = opOrder
63 topDict.cff2GetGlyphOrder = cff2GetGlyphOrder
[all …]
Dmutator.py37 def interpolate_cff2_PrivateDict(topDict, interpolateFromDeltas): argument
43 for fontDict in topDict.FDArray:
63 def interpolate_cff2_charstrings(topDict, interpolateFromDeltas, glyphOrder): argument
64 charstrings = topDict.CharStrings
105 def interpolate_cff2_metrics(varfont, topDict, glyphOrder, loc): argument
112 charstrings = topDict.CharStrings
230 topDict = CFF2.cff.topDictIndex[0]
231 vsInstancer = VarStoreInstancer(topDict.VarStore.otVarStore, fvar.axes, loc)
233 interpolate_cff2_PrivateDict(topDict, interpolateFromDeltas)
235 interpolate_cff2_charstrings(topDict, interpolateFromDeltas, glyphOrder)
[all …]
/external/fonttools/Lib/fontTools/
DfontBuilder.py536 topDict = TopDict()
537 topDict.charset = self.font.getGlyphOrder()
538 topDict.Private = private
539 topDict.GlobalSubrs = fontSet.GlobalSubrs
541 setattr(topDict, key, value)
544 topDict.FontMatrix = [scale, 0, 0, scale, 0, 0]
547 None, topDict.charset, globalSubrs, private, fdSelect, fdArray
553 topDict.CharStrings = charStrings
555 fontSet.topDictIndex.append(topDict)
599 topDict = TopDict()
[all …]
/external/harfbuzz_ng/src/
Dhb-ot-cff2-table.hh429 topDict.init (); in init()
445 byte_str_t topDictStr (cff2 + cff2->topDict, cff2->topDictSize); in init()
449 topDict.init (); in init()
450 if (unlikely (!top_interp.interpret (topDict))) { fini (); return; } in init()
453 globalSubrs = &StructAtOffset<CFF2Subrs> (cff2, cff2->topDict + cff2->topDictSize); in init()
454 varStore = &StructAtOffsetOrNull<CFF2VariationStore> (cff2, topDict.vstoreOffset); in init()
455 charStrings = &StructAtOffsetOrNull<CFF2CharStrings> (cff2, topDict.charStringsOffset); in init()
456 fdArray = &StructAtOffsetOrNull<CFF2FDArray> (cff2, topDict.FDArrayOffset); in init()
457 fdSelect = &StructAtOffsetOrNull<CFF2FDSelect> (cff2, topDict.FDSelectOffset); in init()
503 topDict.fini (); in fini()
[all …]
Dhb-ot-cff1-table.hh1022 topDict.init (); in init()
1050 topDict.init (); in init()
1051 if (unlikely (!top_interp.interpret (topDict))) { fini (); return; } in init()
1058 charset = &StructAtOffsetOrNull<Charset> (cff, topDict.CharsetOffset); in init()
1065 fdArray = &StructAtOffsetOrNull<CFF1FDArray> (cff, topDict.FDArrayOffset); in init()
1066 fdSelect = &StructAtOffsetOrNull<CFF1FDSelect> (cff, topDict.FDSelectOffset); in init()
1087 charStrings = &StructAtOffsetOrNull<CFF1CharStrings> (cff, topDict.charStringsOffset); in init()
1130 cff1_top_dict_values_t *font = &topDict; in init()
1150 topDict.fini (); in fini()
1158 bool is_CID () const { return topDict.is_CID (); } in is_CID()
[all …]
Dhb-subset-cff2.cc289 offsets.topDictInfo.size = TopDict::calculate_serialized_size (acc.topDict, topSzr); in create()
457 cff2->topDict = OT::cff2::static_size; in _write_cff2()
461 assert (cff2->topDict == (unsigned) (c.head - c.start)); in _write_cff2()
463 TopDict &dict = cff2 + cff2->topDict; in _write_cff2()
465 if (unlikely (!dict.serialize (&c, acc.topDict, topSzr, plan.offsets))) in _write_cff2()
474 assert (cff2->topDict + plan.offsets.topDictInfo.size == (unsigned) (c.head - c.start)); in _write_cff2()
Dhb-subset-cff1.cc589 unsigned int sid = acc.topDict.nameSIDs[i]; in collect_sids_in_dicts()
643 topdict_mod.init (&acc.topDict); in create()
644 bool need_to_add_enc = (subset_encoding && !acc.topDict.has_op (OpCode_Encoding)); in create()
645 bool need_to_add_set = (subset_charset && !acc.topDict.has_op (OpCode_charset)); in create()
766 offsets.encodingOffset = acc.topDict.EncodingOffset; in create()
775 offsets.charsetInfo.offset = acc.topDict.CharsetOffset; in create()
/external/fonttools/Lib/fontTools/ttLib/tables/
D_h_e_a_d.py65 topDict = ttFont['CFF '].cff.topDictIndex[0]
66 self.xMin, self.yMin, self.xMax, self.yMax = intRect(topDict.FontBBox)
68 topDict = ttFont['CFF2'].cff.topDictIndex[0]
69 charStrings = topDict.CharStrings
D_v_h_e_a.py64 topDict = ttFont['CFF '].cff.topDictIndex[0]
66 topDict = ttFont['CFF2'].cff.topDictIndex[0]
67 charStrings = topDict.CharStrings
D_h_h_e_a.py78 topDict = ttFont['CFF '].cff.topDictIndex[0]
80 topDict = ttFont['CFF2'].cff.topDictIndex[0]
81 charStrings = topDict.CharStrings
/external/fonttools/Lib/fontTools/cffLib/
D__init__.py155 for topDict in self.topDictIndex:
156 topDict.recalcFontBBox()
185 for topDict in self.topDictIndex:
186 if not hasattr(topDict, "charset") or topDict.charset is None:
188 topDict.charset = charset
249 topDict = TopDict(GlobalSubrs=self.GlobalSubrs)
250 topDict.charset = None # gets filled in later
259 topDict = TopDict(
263 self.topDictIndex.append(topDict)
268 topDict.fromXML(name, attrs, content)
[all …]