Sunday 18 December 2016

fonts - Create webfont with Unicode Supplementary Multilingual Plane symbols



I did a proof-of-concept online implementation of a traditional card game. To avoid having to actually draw pictures of the cards I used the corresponding Unicode characters (eg. U+1F0A1 🂡). While this works great on a modern Linux desktop (where DejaVu Sans is used to display these characters), other operating systems (for example Windows or Android) seem to lack a font that can display the characters.



An easy solution would be to load DejaVu Sans via @font-face. To avoid having to download all of DejaVu Sans, I'd like to create a font that contains only the relevant code points. In principle Font Squirrel's Webfont Generator allows that, but I cannot get it to work with characters from Unicode Plane 1 (where the playing card symbols are).



Is there some easy way to create @font-face-compatible fonts that contain U+1F0A0 to U+1F0DF?


Answer



You can try to adapt the dejavu build script used to create dejavu-lgc. That, or edit it in fontforge directly.



No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...