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.

Fix test cases for CMAP, GPOS and GSUB

See original GitHub issue

Thanks to @fpirsch’s fix in #324, it’s again possible to run the Unicode test suite for text rendering engines on OpenType.js.

Expected Behavior

All test cases should pass.

Current Behavior

Currently, OpenType.js is failing 62 test cases. See test report.

Possible Solution

Consider fixing at least CMAP-1, CMAP-2, and all the GPOS and GSUB cases. For inspiration, have a look at fontkit, another OpenType implementation in JavaScript, which is passing most tests in the test suite (see test report).

Steps to Reproduce

See README for the test suite. Until OpenType.js cuts its next release, you’ll need to manually patch @fpirsch’s fix from #324 into node_modules/opentype.js/bin/test-render.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
brawercommented, Mar 7, 2018

Updated test report is here. Happy debugging!

2reactions
Jolg42commented, Mar 7, 2018

@fpirsch @brawer 0.8.0 is out!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix test cases for CMAP, GPOS and GSUB - - Bountysource
Fix test cases for CMAP, GPOS and GSUB · Expected Behavior · Current Behavior · Possible Solution · Steps to Reproduce.
Read more >
GSUB/GPOS subsetting · Issue #1017 · harfbuzz/harfbuzz · GitHub
Implement hb_auto_t<> that calls init/fini on the object inside, for auto lifecycle management. Write down Supplier protocol. A Supplier will have iter_forward ...
Read more >
A journey into OpenType font internals
A story about constructing a font with a custom ligature based on Roboto.
Read more >
NEWS - external/github.com/harfbuzz/harfbuzz - Git at Google
Fix "unsafe-to-break" in fallback shaping and other corner cases. All our tests pass with --verify now, meaning unsafe-to-break API. works as expected.
Read more >
DTL OTMaster Manual - FontLab Help Center
dtl otmaster: IntrodUctIon refine the kern table, and a 'gsub'/'gpos' Viewer to visually test (and in case of GPOS adjust) these OpenType layout...
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