rename partialInstancer.py to instancer.py

This commit is contained in:
Cosimo Lupo 2019-03-21 15:30:48 +00:00
parent 2ee528e2fd
commit 6281f87cb6
2 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@ variable fonts, only containing a subset of the variation space.
For example, if you wish to pin the width axis to a given location while
keeping the rest of the axes, you can do:
$ fonttools varLib.partialInstancer ./NotoSans-VF.ttf wdth=85
$ fonttools varLib.instancer ./NotoSans-VF.ttf wdth=85
NOTE: The module is experimental and both the API and the CLI *will* change.
"""
@ -25,7 +25,7 @@ import os
import re
log = logging.getLogger("fontTools.varlib.partialInstancer")
log = logging.getLogger("fontTools.varlib.instancer")
PEAK_COORD_INDEX = 1
@ -344,7 +344,7 @@ def parseArgs(args):
import argparse
parser = argparse.ArgumentParser(
"fonttools varLib.partialInstancer",
"fonttools varLib.instancer",
description="Partially instantiate a variable font",
)
parser.add_argument("input", metavar="INPUT.ttf", help="Input variable TTF file.")

View File

@ -1,7 +1,7 @@
from __future__ import print_function, division, absolute_import
from fontTools.misc.py23 import *
from fontTools.ttLib import TTFont
from fontTools.varLib import partialInstancer as pi
from fontTools.varLib import instancer
import os
import pytest
@ -80,7 +80,7 @@ class InstantiateGvarTest(object):
],
)
def test_pin_and_drop_axis(self, varfont, glyph_name, location, expected):
pi.instantiateGvar(varfont, location)
instancer.instantiateGvar(varfont, location)
assert _get_coordinates(varfont, glyph_name) == expected[glyph_name]