[scale-upem] Add docstring
This commit is contained in:
parent
596c571c1c
commit
adf6a67a7a
@ -1,3 +1,9 @@
|
|||||||
|
"""Change the units-per-EM of a font.
|
||||||
|
|
||||||
|
Currently does not support CFF fonts. AAT, Graphite, or color tables are
|
||||||
|
not supported either."""
|
||||||
|
|
||||||
|
|
||||||
from fontTools.ttLib.ttVisitor import TTVisitor
|
from fontTools.ttLib.ttVisitor import TTVisitor
|
||||||
import fontTools.ttLib as ttLib
|
import fontTools.ttLib as ttLib
|
||||||
import fontTools.ttLib.tables.otBase as otBase
|
import fontTools.ttLib.tables.otBase as otBase
|
||||||
@ -143,7 +149,7 @@ if __name__ == "__main__":
|
|||||||
font = TTFont(sys.argv[1])
|
font = TTFont(sys.argv[1])
|
||||||
new_upem = int(sys.argv[2])
|
new_upem = int(sys.argv[2])
|
||||||
|
|
||||||
if 'CFF ' in font or 'CFF2' in font:
|
if "CFF " in font or "CFF2" in font:
|
||||||
print("scale-upem: CFF/CFF2 fonts are not supported.", file=sys.stderr)
|
print("scale-upem: CFF/CFF2 fonts are not supported.", file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user