question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Kozuka Mincho and Kozuka Gothic throw a ton of "unknown operator" errors

See original GitHub issue

Using Adobe’s Kozuka fonts with OpenType.js results in a whole lot of errors about unknown operators. It looks like it’s not decoding the CFF charstring properly…

These two fonts are not free, but come “for free” with any Adobe CC product like Illustrator and Photoshop (including the trial versions), so testing with these fonts should be pretty easy.

processing minchou
Glyph 125: unknown operator 0
Glyph 125: unknown operator 0
Glyph 125: unknown operator 0
...
Glyph 1164: unknown operator 0
Glyph 1164: unknown operator 0
Glyph 1164: unknown operator 0
Glyph 1170: unknown operator 16
Glyph 1170: unknown operator 0
Glyph 1178: unknown operator 0
Glyph 1185: unknown operator 0
...
Glyph 1313: unknown operator 0
Glyph 1317: unknown operator 0
Glyph 1322: unknown operator 1200247
Glyph 1326: unknown operator 0
Glyph 1326: unknown operator 0
...
Glyph 1543: unknown operator 0
Glyph 1543: unknown operator 0
Glyph 1543: unknown operator 0
Glyph 1547: unknown operator 12007
Glyph 1551: unknown operator 2
Glyph 1551: unknown operator 16
Glyph 1551: unknown operator 2
Glyph 1555: unknown operator 0
Glyph 1560: unknown operator 0
Glyph 1560: unknown operator 0
...

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
miguelsousacommented, Jun 27, 2015

What’s happening is that the parser is not taking into account that these are CID-keyed fonts and is stumbling into all the subroutines. The advanced widths are also messed up. @tshinnic addressed these things with PR #92. I did a bit of testing and these are the before and after screenshots using Kozuka Mincho: before kozmin_before after kozmin_after

@fdb perhaps it’s worth merging #92 even though Tom mentioned that it’s incomplete. The improvements to CID-keyed font parsing are quite significant there.

0reactions
Pomaxcommented, Jun 28, 2015

sweet!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kozuka Gothic in use - Fonts In Use
Designed in 2001–2011 by a team led by Masahiko Kozuka as a Gothic typeface that can be paired with Kozuka Mincho. The Latin...
Read more >
Untitled
Ley 19857 actualizada, Peter hook presents unknown pleasures, Linespec software, ... Brca2 normal function, Kozuka mincho, Vibram fit snug, Porsche 1973 rs ...
Read more >
Untitled
Joy division unknown pleasures album, How to cite in a 243 rifle, Bitrix alternative, ... Harmful mutation in animals, Kozuka mincho pro medium, ......
Read more >
Viewing online file analysis results for 'gs920w32.exe'
Opens the Kernel Security Device Driver (KsecDD) of Windows ... bugs.ghostscript.com, 50.240.204.217, -, Flag of United States United States.
Read more >
Type design in Japan - Luc Devroye
Designer of the Kozuka Mincho (serif) and Kozuka Gothic (sans serif; poster by Ray Hansen) kanji families at Adobe, available in OpenType.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found