Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Can't use CID indexed OpenType fonts #2239

Open
sicher opened this issue Oct 11, 2018 · 1 comment
Open

Can't use CID indexed OpenType fonts #2239

sicher opened this issue Oct 11, 2018 · 1 comment
Labels
serious A serious although non-blocking issue

Comments

@sicher
Copy link
Contributor

sicher commented Oct 11, 2018

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 erikangelin-king added the serious A serious although non-blocking issue label Oct 12, 2018
@erikangelin-king
Copy link
Contributor

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.

@erikangelin-king erikangelin-king changed the title Font causes "Failed to generate bitmap from Font. Wrong number of args (1) passed to: core/ex-info" Can't use CID indexed OpenType fonts Oct 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
serious A serious although non-blocking issue
Projects
None yet
Development

No branches or pull requests

2 participants