Iconize icon indicating copy to clipboard operation
Iconize copied to clipboard

Support for UTF Supplementary Private Use Area-A

Open EndlessDelirium opened this issue 4 years ago • 2 comments

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.

EndlessDelirium avatar May 08 '20 10:05 EndlessDelirium

As you mentioned in https://github.com/jsmarcus/Iconize/pull/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?

gercobrandwijk avatar Nov 06 '20 09:11 gercobrandwijk

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

EndlessDelirium avatar Nov 10 '20 16:11 EndlessDelirium