/external/fonttools/Tests/varLib/instancer/ |
D | names_test.py | 8 def test_pruningUnusedNames(varfont): argument 9 varNameIDs = instancer.names.getVariationNameIDs(varfont) 13 fvar = varfont["fvar"] 14 stat = varfont["STAT"].table 16 with instancer.names.pruningUnusedNames(varfont): 22 assert not any(n for n in varfont["name"].names if n.nameID in {256, 258}) 24 with instancer.names.pruningUnusedNames(varfont): 25 del varfont["fvar"] 26 del varfont["STAT"] 28 assert not any(n for n in varfont["name"].names if n.nameID in varNameIDs) [all …]
|
D | instancer_test.py | 50 def _get_coordinates(varfont, glyphname): argument 53 return list(varfont["glyf"].getCoordinatesAndControls(glyphname, varfont)[0]) 113 def test_pin_and_drop_axis(self, varfont, glyph_name, location, expected, optimize): argument 114 instancer.instantiateGvar(varfont, location, optimize=optimize) 116 assert _get_coordinates(varfont, glyph_name) == expected[glyph_name] 121 for tuples in varfont["gvar"].variations.values() 125 def test_full_instance(self, varfont, optimize): argument 127 varfont, {"wght": 0.0, "wdth": -0.5}, optimize=optimize 130 assert _get_coordinates(varfont, "hyphen") == [ 141 assert "gvar" not in varfont [all …]
|
D | conftest.py | 10 def varfont(): function
|
/external/fonttools/Lib/fontTools/varLib/ |
D | mutator.py | 105 def interpolate_cff2_metrics(varfont, topDict, glyphOrder, loc): argument 114 hmtx = varfont['hmtx'] 116 if 'HVAR' in varfont: 117 hvar_table = varfont['HVAR'].table 118 fvar = varfont['fvar'] 152 def instantiateVariableFont(varfont, location, inplace=False, overlap=True): argument 169 varfont.save(stream) 171 varfont = TTFont(stream) 173 fvar = varfont['fvar'] 176 if 'avar' in varfont: [all …]
|
/external/fonttools/Lib/fontTools/varLib/instancer/ |
D | __init__.py | 326 def instantiateGvarGlyph(varfont, glyphname, axisLimits, optimize=True): argument 327 glyf = varfont["glyf"] 328 coordinates, ctrl = glyf.getCoordinatesAndControls(glyphname, varfont) 331 gvar = varfont["gvar"] 353 glyf.setCoordinates(glyphname, coordinates, varfont) 366 def instantiateGvar(varfont, axisLimits, optimize=True): argument 369 gvar = varfont["gvar"] 370 glyf = varfont["glyf"] 385 instantiateGvarGlyph(varfont, glyphname, axisLimits, optimize=optimize) 388 del varfont["gvar"] [all …]
|
D | names.py | 24 def getVariationNameIDs(varfont): argument 26 if "fvar" in varfont: 27 fvar = varfont["fvar"] 34 if "STAT" in varfont: 35 stat = varfont["STAT"].table 45 def pruningUnusedNames(varfont): argument 48 origNameIDs = getVariationNameIDs(varfont) 53 exclude = origNameIDs - getVariationNameIDs(varfont) 54 varfont["name"].names[:] = [ 55 record for record in varfont["name"].names if record.nameID not in exclude [all …]
|
/external/fonttools/Tests/varLib/ |
D | varLib_test.py | 136 varfont, model, _ = build(ds_path, finder) 142 varfont = reload_font(varfont) 145 self.expect_ttx(varfont, expected_ttx_path, tables) 146 self.check_ttx_dump(varfont, expected_ttx_path, tables, suffix) 339 varfont, _, _ = build(ds) 340 varfont = reload_font(varfont) 343 self.expect_ttx(varfont, expected_ttx_path, tables) 362 varfont, _, _ = build(ds) 363 varfont = reload_font(varfont) 366 self.expect_ttx(varfont, expected_ttx_path, tables) [all …]
|
D | mutator_test.py | 105 varfont, _, _ = build(ds_path, finder) 108 varfont.save(varfont_path) 178 varfont = TTFont(varfont_path) 179 new_font = make_instance(varfont, loc)
|
D | interpolate_layout_test.py | 856 varfont, _, _ = build(ds_path, finder) 859 varfont.save(varfont_path)
|
/external/fonttools/ |
D | NEWS.rst | 1034 Any varfont built that had an unusual master configuration will change
|