This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright 2023 Adobe, Inc. All Rights Reserved. | |
| # Author: Miguel Sousa | |
| """ | |
| Converts a Type 1 font into a OpenType-CFF font. | |
| """ | |
| import argparse | |
| from fontTools.agl import toUnicode | |
| from fontTools.fontBuilder import FontBuilder | |
| from fontTools.misc.cliTools import makeOutputFileName |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # coding: utf-8 | |
| from __future__ import division, print_function | |
| from math import atan, pi, tan | |
| start_angle = -15 | |
| end_angle = 15 | |
| step = 0.1 | |
| tolerance = 0.08 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import print_function, division, absolute_import | |
| from fontTools.misc.py23 import * | |
| from fontTools.pens.areaPen import AreaPen | |
| import unittest | |
| # TODO: paths with qCurveTo | |
| precision = 6 | |
| def draw1_(pen): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from fontTools import ttLib | |
| from fontTools.pens.areaPen import AreaPen | |
| fontFileName = "areatestfont.otf" | |
| gNamesList = "testA testB testC testD".split() | |
| ttFont = ttLib.TTFont(fontFileName) | |
| gSet = ttFont.getGlyphSet() | |
| for gName in gNamesList: |