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

Support for UTF Supplementary Private Use Area-A #177

Open
EndlessDelirium opened this issue May 8, 2020 · 2 comments
Open

Support for UTF Supplementary Private Use Area-A #177

EndlessDelirium opened this issue May 8, 2020 · 2 comments

Comments

@EndlessDelirium
Copy link
Contributor

MaterialDesignIcons seems to have moved their icons from the Private Use Area (U+E000..U+F8FF) to the Supplementary Private Use Area-A (U+F0000..U+FFFFD).
Iconize internally uses a lookup table where type "char" is used to store the unicode character. This unfortunately doesn't work for "Supplementary Private Use Area-A" as it requires either UTF-16 surrogate pairs or UTF-32.
Easiest fix is likely to simply use "string" instead of "char" for storing the unicode character of the icon.

@gercobrandwijk
Copy link

As you mentioned in #178 you converted the font so that it uses the PUA blocks, so that it can be used in this library without the need for changing char to string. How can I convert the latest font of material design icons (v5.8.55) by myself, like you did for version 5.1.45?

@EndlessDelirium
Copy link
Contributor Author

This can be done fairly easily with FontForge (https://fontforge.org/):

  1. Edit>Select>Glyphs worth outputting
  2. Cut selection
  3. View>GoTo to navigate to Private Use Area-A
  4. Paste

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

No branches or pull requests

2 participants