defold / editor2-issues

DEPRECATED
45 stars 4 forks source link

Can't use CID indexed OpenType fonts #2239

Open sicher opened 5 years ago

sicher commented 5 years ago

The attached font won't work correctly in the editor. STR:

  1. Add font to project.
  2. Create new font file and select the otf file.

copyfonts.com_kozgopr6n-bold-opentype.otf.zip

erikangelin-king commented 5 years ago

Hi @sicher! The ex-info error has been fixed, and that reveals the underlying error: we can't properly measure the height/width of the font. Looking closer, this seems to be because it is CID-indexed. I naively converted "Flattened" the font using Fontforge (and got loads of errors) but then it at least displayed somewhat ok. There seems to be a bug/missing feature in the JDK version we're using that makes CID-indexed somewhat unsupported: https://bugs.openjdk.java.net/browse/JDK-8074562 Renaming this issue to reflect the real error.