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

Experiencing very slow OTF builds in FontMake build: "INFO:ufo2ft.postProcessor:Subroutinizing CFF table" #373

Closed
arrowtype opened this issue Mar 27, 2020 · 5 comments

Comments

@arrowtype
Copy link

I'm not sure whether this is tied to this issue or not:

Consider (optionally) using tx instead of compreffor #372

...but I'm running into extremely long builds for OTFs with FontMake.

Everything goes extremely fast, until it hits this:

INFO:ufo2ft.postProcessor:Subroutinizing CFF table

...and then my fans whir up and things grind to a halt. I left my computer for an hour or two, and only 3 instances out of 33 had built into static OTFs.

Are there any tactics that I might use to investigate this problem any further?

Thank you so much for any tips or insight!

@madig
Copy link
Collaborator

madig commented Mar 27, 2020

How many glyphs are in your instances? The issue you linked is related, as compreffor is very slow. Try subroutinizing with tx instead.

@arrowtype
Copy link
Author

Hey @madig, thanks for your reply!

I have about 285 glyphs in this typeface, many of which are comprised of components (it's a basic Latin character set, currently).

Sorry if this is a basic question, but do you happen to know if there is a way to use tx directly in FontMake, or would I have to make a custom build tool?

I did find the fontmake option --optimize-cff 0, which prevents subroutinization. Probably not optimal in the long run, but it let things build nice and quickly, which was the most important thing for now. Should have looked at the --help doc before asking for tips!

@madig
Copy link
Collaborator

madig commented Mar 30, 2020

As discussed in #372, integrating tx into fontmake somehow is desirable, but no one put in the work yet. You'll have to insert an additional step in your pipeline yourself.

@anthrotype
Copy link
Member

@arrowtype I integrated cffsubr support in ufo2ft with #383. Now I have to update fontmake to optionally use that. What is the font you were building that would take so long, so I can run some tests?

@khaledhosny
Copy link
Collaborator

The cffsubr option has been the default for sometime.

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

No branches or pull requests

4 participants