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

Fix Gaps in Icon Unicode Values #19270

Merged
merged 2 commits into from
Sep 4, 2019
Merged

Conversation

jryio
Copy link
Contributor

@jryio jryio commented Sep 4, 2019

While every other part of the icon font generation was handling gaps in unicode values correctly, our final kb.ttf was ordering the icons sequentially.

This means that icons.constants.tsx ans icons.css had the desired unicode values for each icon, however the true unicode values in kb.ttf had no gaps and were incorrect.

After this PR, the gaps in unicode values are refelcted in kb.ttf. This can be seen by...

  1. Deleting an icon file {counter}-kb-iconfont-{name}.svg
  2. Running yarn update-icon-fonts
  3. Opening Font Forge with client/shared/fonts/kb.ttf
  4. View > Go To
  5. Enter 0x900
  6. Scroll down a bit and see an empty glyph where the SVG icon from High-level comments on major files #1 was deleted.

Spinning up the desktop and mobile applications also reflect these changes.

@jryio jryio force-pushed the thebearjew/fix-icon-codepoint-gaps branch from 812972d to f31b234 Compare September 4, 2019 19:18
@jryio jryio merged commit 2183ab9 into master Sep 4, 2019
@jryio jryio deleted the thebearjew/fix-icon-codepoint-gaps branch September 4, 2019 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants