Wednesday, January 23, 2019

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

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...