parlr / ruby-font-creator

Generate rich Unicode open fonts with custom annotations, transliterations, pronunciations.
21 stars 3 forks source link

Opentype.js fails to render Noto fonts #31

Closed edouard-lopez closed 6 years ago

edouard-lopez commented 7 years ago

There is blocking issue with Noto-CJK/Opentype.js. For more informations, see:

related: nodebox/opentype.js#273, googlei18n/noto-cjk#81

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

edouard-lopez commented 6 years ago

ping @hugolpz

edouard-lopez commented 6 years ago

From opentype.js project: CID-keyed fonts are now supported, see nodebox/opentype.js#273