-
Notifications
You must be signed in to change notification settings - Fork 465
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
Scrambled rendering with NotoSansTC-Regular.otf #273
Comments
The same font renders fine with FontView so this looks like a problem of OpenType.js. |
Noto Serif has been released on April 2017 but still has the issue. From googlei18n/noto-cjk#81 the issue come from OpenType.js. Could you give some feedback? |
Same for Noto Serif — the font renders fine with FontView (which is just a GUI wrapper around HarfBuzz and FreeType), so this looks like a bug in OpenType.js. If someone figures out what exactly is triggering this bug, would you mind contributing a test font (with just 2 glyphs) to Unicode? If you send a pull request to Unicode’s text rendering test suite and accept Unicode’s contributor license agreement, I’ll gladly add a test case that uses your font. By doing this, you will help to make all OpenType implementations towards more compliant with the spec. |
It seems the |
It seems like this is a CID-keyed font, which we do not yet have support for. I'll see what I can do. |
Indeed, OpenType.js runs into the same problem with this test font: Instead, it should look like this. |
We now parse CID-keyed fonts correctly! The new version 0.7.0 includes the fix (with a big thanks to @tshinnic for the initial implementation). |
related: #243, notofonts/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 theNotoSansTC-Regular.otf
.Drilling down it appears
text-to-svg
is based onopentype.js
.Expected
This is for reference, I find that
DroidSansFallbackFull.ttf
worked fine.Actual (with NotoSans)
I tested on opentype.js online demo and the result is scramble too (see below):
The text was updated successfully, but these errors were encountered: