Skip to content

This utility takes vector icons in svg format and convert them to icon fonts (svg,ttf,waff,eot) to be display in all browsers.

Notifications You must be signed in to change notification settings

treeform/icons2font

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

icons2font

This utility takes vector icons in svg format and convert them to icon fonts (svg,ttf,waff,eot) to be display in all browsers.

Usage

icons2font.py [-h] [--baseline BASELINE] name src [dest]

This utility takes vector icons in svg format and converts them to icon fonts
(svg,ttf,waff,eot) to be display in all browsers.

positional arguments:
  name                 name of the icon font you want
  src                  folder wher the svg glyphs are
  dest                 folder to output the stuff

optional arguments:
  -h, --help           show this help message and exit
  --baseline BASELINE  adjust generated chars up or down

example

python icons2font.py my_awesome_font ~/some_svgs ~/i2f_output --baseline 2

Requirements

  • fontforge (with python library)
  • ttf2eot

Mac installation

brew install fontforge ttf2eot

About

This utility takes vector icons in svg format and convert them to icon fonts (svg,ttf,waff,eot) to be display in all browsers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •