Skip to content
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 renderind with NotoSansTC-Regular.otf #81

Closed
edouard-lopez opened this issue Mar 31, 2017 · 6 comments
Closed

Scrambled renderind with NotoSansTC-Regular.otf #81

edouard-lopez opened this issue Mar 31, 2017 · 6 comments

Comments

@edouard-lopez
Copy link

related: opentypejs/opentype.js#273, opentypejs/opentype.js#243

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

@khaledhosny
Copy link

Have you tried other fonts with CFF table to rule out a general problem with such fonts?

@edouard-lopez
Copy link
Author

@khaledhosny I only try DroidSansFallbackFull, could you suggest CJK fonts with CFF table as I'm not familiar with that ?

@khaledhosny
Copy link

Any .otf font, CJK or not.

@hugolpz
Copy link

hugolpz commented Apr 10, 2017

The Noto CJK page exposes a large range of flavors, otc vs ttf, etc.

@edouard-lopez, in your example you compare DroidSansFallbackFull.ttf (TTF, working) to NotoSansTC-Regular.otf (OTF, buggy).

This image could be relevant.
cjk-recommended-use

@brawer
Copy link

brawer commented Apr 10, 2017

The same font renders fine with FontView so this looks like a problem in OpenType.js.

@hugolpz
Copy link

hugolpz commented Apr 10, 2017

OpenType.js process other fonts fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants