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.

Scrambled rendering with NotoSansTC-Regular.otf

See original GitHub issue

related: #243, googlei18n/noto-cjk#81 block: parlr/ruby-font-creator#29

I met rendering problems when using text-to-svg (shrhdk/text-to-svg#22, shrhdk/text-to-svg#23) with the NotoSansTC-Regular.otf. Drilling down it appears text-to-svg is based on opentype.js.

Expected

This is for reference, I find that DroidSansFallbackFull.ttf worked fine.

key value
font DroidSansFallbackFull.ttf
text 㐅㐆丰wǔyǐnfēng

DroidSansFallbackFull.ttf using opentype.js

Actual (with NotoSans)

I tested on opentype.js online demo and the result is scramble too (see below):

key value
font NotoSansTC-Regular.otf
text 㐅㐆丰wǔyǐnfēng

NotoSansTC-Regular.otf using opentype.js

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fdbcommented, Apr 25, 2017

We now parse CID-keyed fonts correctly!

screen shot 2017-04-25 at 14 29 07

The new version 0.7.0 includes the fix (with a big thanks to @tshinnic for the initial implementation).

1reaction
fdbcommented, Apr 10, 2017

It seems like this is a CID-keyed font, which we do not yet have support for. I’ll see what I can do.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OTF fonts rendering scrambled glyphs or not rendering #1203
It seems like there are two kinds of issues I run into when using certain OTF fonts within Prawn to generate PDFs. The...
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