Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird corruption when using Metrics View in compact CID-keyed fonts #3942

Open
ctrlcctrlv opened this issue Sep 20, 2019 · 0 comments
Open
Labels

Comments

@ctrlcctrlv
Copy link
Member

Necessary file: 蒙纳繁勘亭流.otf (CKanHK-XboldSupp)

This bug takes the cake for bizarre CID bugs.

2019-09-20-183111_2194x867_scrot

Notice how glyphs are being drawn on top of FontForge's gray X which in normal operation is supposed to indicate, there's no glyph here. If we open the corresponding CharView of these glyphs we get an empty window.

Here's how we get ourselves into this bizarre broken state:

  1. Open the necessary file
  2. CID→CKanHK-XboldSupp
  3. Critical step: Encoding→Compact
  4. Metrics View
  5. Enter text 何が起こってる?
  6. Back to FontView, find こ. Now corrupt.

Much more “fun” with this corruption is possible. Let's say we skip the Compact step, and do it as normal.

2019-09-20-184418_3816x849_scrot

Then let's hit Encoding→Compact! Be sure to press space! Instant corruption.

2019-09-20-184458_3816x849_scrot

Let's go to the FontView, «Ctrl→>» (Goto) and enter ‹こ›…

2019-09-20-184615_1612x635_scrot

It obviously should not be possible to have two ‹こ› in one file. Our memory seems hopelessly corrupt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant