question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Should compileTTF() call cu2qu?

See original GitHub issue

Right now I need to manually call cu2qu to convert fonts with cubic outlines before calling compileTTF(), but it might make some sense to do this by default in some way or another.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
khaledhosnycommented, Jul 20, 2016

One problem of calling font_to_quadratic() before compileTTF() is that it modifies the font in place which is problematic if the caller wants to continue working with the original font (e.g. a font editor exporting the font), so I think setupTable_glyf() is a good place to do the conversion without having to modify the source font.

I think we can add optional parameter for error tolerance to compileTTF().

0reactions
behdadcommented, Jul 20, 2016

(with what error tolerance though?)

Read more comments on GitHub >

github_iconTop Results From Across the Web

cu2qu - PyPI
This library provides functions which take in UFO objects (Defcon Fonts or Robofab RFonts) and converts any cubic curves to quadratic.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found