A Swiss Army knife for developers.
C# blazorcross-platformcsharpdesktopdesktop-appdesktop-applicationdeveloper-toolsextensiblefluentfluent-designlinuxmacosmicasyntax-highlightingtypescriptwindowswindows-10windows-11winui
Introduction
We can edit the SVG of each icon in Figma, Inkscape, Adobe Illustrator or whatever tool we prefer.
We use FontForge to generate the font. Here is a small tutorial:
Add a glyph to the font
- Install FontForge and open DevToys-Tools-Icons.sfd.
- In Figma, Inkscape, Adobe Illustrator or else, create a glyph and export it as a SVG.
- In FontForge, go to
Encoding > Add Encoding Slots. - Select the slot you just created and go to
File > Importand select the SVG you want to import. UnderOptions, uncheckScale to fit (Misc). - Then, go to
Element > Glyph Infoand set a glyph name and Unicode value likeU+0100.
Generate a TrueType font
- First, we need to validate the change we made. Go to
Element > Validation > Validate...- Typical error we encountered in the past is
Self Intersecting. You can resolve it automatically by usingElement > Overlap > Remove Overlap. If it made the glyph ugly, you will have to fix the issue manually by editing the SVG. - Another typical error we encountered is
Non-Integral Coordinates. To fix it automatically, useElement > Round > To Int. - Another error is
Missing Points at Extrema. To fix it, useElement > Add Extrema.
- Typical error we encountered in the past is
- Once there are no validation issues anymore, go to
File > Generate Fonts. SelectTrueTypeand checkValidate before saving. Then clickGenerate. - A TTF file should be generated. You can verify that it works well by trying to open it in the app Character Map UWP.