Skip to content

Latest commit

 

History

History

font-icons

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

All icons in svgs folder will be used to generate our custom font icons.

Run pnpm make-font-icons to update the font when needed.

Under output directory, a demo page index.html will be created with a preview of the font icons.

Svg Icon Source

It will be useful to also document here the source of each icon.

Troubleshooting

  • Sometimes the svg icon will not work properly when converted to font (it might be a good idea to do this process for all svgs - to take advantage of any optimizations). An easy way to fix it is use IcoMoon and svgfont2svgicons
    • Upload the svg icon to IcoMoon
    • Generate the font (check if the icon looks good - if not probably it will not work)
    • Download the new font
    • Unzip the font
    • Use svgfont2svgicons path/to/svgfont path/to/output to extract the svg icon
    • Use the extracted svg icon instead of the original one
    • The new svg usually starts with something like <?xml version="1.0" encoding="UTF-8" standalone="no"?> but this doesn't work properly when running make-font-icons. Removing it will fix the error.