diff --git a/font/osmic.eot b/font/osmic.eot index 60ae9a5..966a979 100644 Binary files a/font/osmic.eot and b/font/osmic.eot differ diff --git a/font/osmic.svg b/font/osmic.svg index 7890c10..fb501ab 100644 --- a/font/osmic.svg +++ b/font/osmic.svg @@ -5,7 +5,7 @@ --> -Created by FontForge 20120731 at Sun May 10 11:18:34 2015 +Created by FontForge 20120731 at Sun May 10 14:11:44 2015 By Michael,,, Created by Michael,,, with FontForge 2.0 (http://fontforge.sf.net) diff --git a/font/osmic.ttf b/font/osmic.ttf index 91dac1f..7e85d87 100644 Binary files a/font/osmic.ttf and b/font/osmic.ttf differ diff --git a/font/osmic.woff b/font/osmic.woff index 873e2cc..4556aa4 100644 Binary files a/font/osmic.woff and b/font/osmic.woff differ diff --git a/tools/export.py b/tools/export.py index 96ae385..581a4de 100755 --- a/tools/export.py +++ b/tools/export.py @@ -121,7 +121,7 @@ def main(): os.remove(icon_out_path) if config['format'] == 'font': - exportFont(config['output'], config['font']['output']) + exportFont(config['output'], config['font']['output'], size) # generate sprite if config['format'] == 'sprite': @@ -309,13 +309,13 @@ def exportPNG(source, destination, dpi, retina): # export icon font -def exportFont(source, destination): +def exportFont(source, destination, size): # TODO Windows? try: - subprocess.call(['fontcustom', 'compile', source, '--force', '--output=' + destination, '--font-name=osmic', '--no-hash', '--font-design-size=14', '--css-selector=.oc-{{glyph}}']) + subprocess.call(['fontcustom', 'compile', source, '--force', '--output=' + destination, '--font-name=osmic', '--no-hash', '--font-design-size=' + str(size), '--css-selector=.oc-{{glyph}}']) except OSError: # fontcustom is not installed - sys.exit('Export as icon font requires fontcustom. See http://fontcustom.com. Exiting.') + sys.exit('Export as icon font requires Font Custom. See http://fontcustom.com. Exiting.') return