opentypejs / opentype.js

Read and write OpenType fonts using JavaScript.
https://opentype.js.org/
MIT License
4.38k stars 468 forks source link

OpenType not displaying Urdu, Korean scripts #412

Closed cynthiaxhua closed 8 months ago

cynthiaxhua commented 4 years ago

I loaded the Noto font (https://www.google.com/get/noto/) into openType but cannot get it to display a number of foreign scripts including Korean and Urdu. The Noto font is meant to be compatible with these languages.

For example, if you try to paste this Urdu character ( چار ) into the OpenType Example Test page here (https://opentype.js.org/) and load in the Noto Font .ttf (download here https://www.google.com/get/noto/), you will get just tofu.

Any tips on working with foreign scripts?

robsch commented 4 years ago

I think there is a problem on https://opentype.js.org. In the browser console

Error: lookupType: 7 - substFormat: 1 is not yet supported

gets shown. But it seems to work anyway if your using the library directly.

KKzLEO commented 1 year ago

+1 😥

ILOVEPIE commented 1 year ago

A lot of foreign scripts require special font features that aren't supported yet. We're working on it though.

Connum commented 8 months ago

See https://github.com/opentypejs/opentype.js/issues/627#issuecomment-1773311283