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.

Add opentype-best-practices profile & FAIL if dnom/numr features exist

See original GitHub issue

Observed behaviour

In https://typedrawers.com/discussion/comment/45741/#Comment_45741 @tiroj explains

Expected behaviour

This isn’t off-spec - just the opposite - but it is something everyone should know to check, and many don’t, because the OT spec has been undermaintained…

So I propose a new profile like opentype-best-practices and a first check that FAILs if dnom/numr features exist.

he GF profile should include this profile.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tirojcommented, Mar 2, 2020

I should also note that while I think the numr and dnom features are unnecessary for implementation of the frac feature, and hence that the features as originally registered by Adobe should have been deprecated, I can’t say for certain if or how the features might be being used today. We, like most other font makers, include them in fonts on the basis that ‘The glyph exists, the features exist, they’re not doing any harm’. Adobe’s typography UI in InDesign provides direct access to the features, and other UIs and markup syntax might do likewise. So it is possible that someone is using them for something that I have not considered.

0reactions
tphinneycommented, Mar 7, 2020

I think the desirable check is “if it has numerators and denominators, do fractions work as expected in all environments.” But that is a lot more complex than this request.

Until then…

  • ‘numr’ and ‘dnom’ require very little code/space
  • they have no known negative effects
  • are probably unnecessary (ASSUMING the font is built to use ‘frac’ only)
Read more comments on GitHub >

github_iconTop Results From Across the Web

OpenType - Font Development Best Practices - GitHub Pages
The OpenType specification suggests that software should: assemble all lookups from the set of chosen features, and apply the lookups in the order...
Read more >
OpenType features in practice – Fonts Knowledge
When attempting to implement any OpenType feature, it's important to ensure that it's actually doable.
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