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

Make faster build? Testing gftools builder "ninja" branch #81

Closed
arrowtype opened this issue Jul 5, 2022 · 2 comments
Closed

Make faster build? Testing gftools builder "ninja" branch #81

arrowtype opened this issue Jul 5, 2022 · 2 comments

Comments

@arrowtype
Copy link
Owner

According to Simon, a "Ninja Builder" branch of gftools is theoretically a much faster way to build font files.

However, after a couple separate attempts and maybe 2–3 total hours, I have not yet succeeded in getting it to work.

Here is an (untracked) simplified designspace I recently added to the "prepped" folder to test a ninja builder config in a ninja-builder branch of this repo.

<?xml version='1.0' encoding='UTF-8'?>
<designspace format="4.1">
  <axes>
    <axis tag="wght" name="Weight" minimum="300" maximum="800" default="300"/>
  </axes>
  <sources>
    <source filename="shantell--light.ufo" familyname="Shantell Sans" stylename="Light">
      <lib copy="1"/>
      <groups copy="1"/>
      <features copy="1"/>
      <info copy="1"/>
      <location>
        <dimension name="Weight" xvalue="300"/>
      </location>
    </source>
    <source filename="shantell--extrabold.ufo" familyname="Shantell Sans" stylename="ExtraBold">
      <location>
        <dimension name="Weight" xvalue="800"/>
      </location>
    </source>
  </sources>
  <instances>
    <instance familyname="Shantell Sans Normal" stylename="Light" filename="instances/Shantell_Sans-Light.ufo">
      <location>
        <dimension name="Weight" xvalue="300"/>
      </location>
      <kerning/>
      <info/>
    </instance>
  </instances>
</designspace>
@arrowtype
Copy link
Owner Author

One update: running the following does run the Ninja Builder, which wasn’t even running before:

python -m gftools.builder.ninja gftools-builder-config.yaml

However, it’s still getting stuck in various ways.

@arrowtype
Copy link
Owner Author

The current build works well, if a little slowly, and I probably won’t need to build it a bunch more times. I may come back to this later, but for now, I’ll consider this build investigation complete.

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

1 participant