[varLib.cff] Restore and deprecate convertCFFtoCFF2
It is used by ufo2ft.
This commit is contained in:
parent
6c93fc6289
commit
eff90154ed
@ -16,6 +16,7 @@ from fontTools.cffLib.specializer import specializeCommands, commandsToProgram
|
||||
from fontTools.ttLib import newTable
|
||||
from fontTools import varLib
|
||||
from fontTools.varLib.models import allEqual
|
||||
from fontTools.misc.loggingTools import deprecateFunction
|
||||
from fontTools.misc.roundTools import roundFunc
|
||||
from fontTools.misc.psCharStrings import T2CharString, T2OutlineExtractor
|
||||
from fontTools.pens.t2CharStringPen import T2CharStringPen
|
||||
@ -49,6 +50,13 @@ def addCFFVarStore(varFont, varModel, varDataList, masterSupports):
|
||||
fontDict.Private.vstore = topDict.VarStore
|
||||
|
||||
|
||||
@deprecateFunction("Use fontTools.cffLib.CFFToCFF2.convertCFFToCFF2 instead.")
|
||||
def convertCFFtoCFF2(varFont):
|
||||
from fontTools.cffLib.CFFToCFF2 import convertCFFToCFF2
|
||||
|
||||
return convertCFFToCFF2(varFont)
|
||||
|
||||
|
||||
def conv_to_int(num):
|
||||
if isinstance(num, float) and num.is_integer():
|
||||
return int(num)
|
||||
|
Loading…
x
Reference in New Issue
Block a user