Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to use current ufo2ft API #440

Merged
merged 5 commits into from
Jun 6, 2018

Conversation

anthrotype
Copy link
Member

decomposing glyphs, removing overlaps, converting curves to quadratic can be done by appropriate ufo2ft preprocessor filters, fontmake only needs to pass the right options to the top-level compile functions.
Note that this was already implemented in the current stable ufo2ft 1.1.0 released in december last year, we just didn't update fontmake to make use of them.

Also, adds support for cff_round_tolerance. In ufo2ft the argument is called simply roundTolerance but here we need to distinguish it from the other one called round_instances.

move dict out of the loop, as it doesn't change
also, add support for `cff_round_tolerance` (the argument is called
simply `roundTolerance` in ufo2ft.compileOTF but we want to distinguish
it from the other one here called round_instances).

TODO: we probably need to make the ufo2ft filters/compiler/etc. logging
print more info messages as it's now doing all the work.
…d 'convert_curves'

Here i'm being overly picky to send out a deprecation warning, since
we don't really support running fontmake.font_project as a library,
but just 'fontmake' as the command-line tool.

if use_production_names is None:
use_production_names = not ufo.lib.get(
GLYPHS_PREFIX + "Don't use Production Names")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This Glyphs.app-specific UFO lib key will also be supported in the upcoming ufo2ft
googlefonts/ufo2ft@2ca438c

@anthrotype anthrotype merged commit 91efd53 into googlefonts:master Jun 6, 2018
@anthrotype anthrotype deleted the use-new-ufo2ft-api branch June 6, 2018 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant