From 5f44b9dce9d9b9d817960c4e0b2b0c69abd66f55 Mon Sep 17 00:00:00 2001 From: Jake Pearson Date: Fri, 4 May 2012 12:02:10 -0600 Subject: [PATCH] Export works --- extractor/empty.svg | 20 ++++++++++++-------- extractor/extract.rb | 26 +++++++++++++------------- 2 files changed, 25 insertions(+), 21 deletions(-) diff --git a/extractor/empty.svg b/extractor/empty.svg index d5aa47d65..2624112cf 100644 --- a/extractor/empty.svg +++ b/extractor/empty.svg @@ -9,8 +9,8 @@ xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" - width="32" - height="32" + width="900" + height="900" id="svg6044" version="1.1" inkscape:version="0.48.2 r9819" @@ -24,9 +24,9 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" - inkscape:zoom="11" - inkscape:cx="14.519665" - inkscape:cy="17.277308" + inkscape:zoom="0.12153398" + inkscape:cx="-785.06398" + inkscape:cy="-68.264027" inkscape:current-layer="layer1" showgrid="true" inkscape:document-units="px" @@ -35,7 +35,11 @@ inkscape:window-height="627" inkscape:window-x="1616" inkscape:window-y="258" - inkscape:window-maximized="0" /> + inkscape:window-maximized="0" + fit-margin-top="0" + fit-margin-left="0" + fit-margin-right="0" + fit-margin-bottom="0" /> @@ -52,9 +56,9 @@ id="layer1" inkscape:label="Layer 1" inkscape:groupmode="layer" - transform="translate(0,-31.999983)"> + transform="translate(0.0625,0.0625)"> diff --git a/extractor/extract.rb b/extractor/extract.rb index 633772a36..231e1003e 100644 --- a/extractor/extract.rb +++ b/extractor/extract.rb @@ -1,13 +1,8 @@ icons = {} glyphs = {} -sass_file = File.open('../sass/font-awesome.sass') -sass_lines = sass_file.readlines -sass_file.close - -svg_file = File.open('../font/fontawesome-webfont.svg') -svg_lines = svg_file.readlines -svg_file.close +sass_lines = File.open('../sass/font-awesome.sass').readlines +svg_lines = File.open('../font/fontawesome-webfont.svg').readlines index = 0 while index < sass_lines.length @@ -23,7 +18,6 @@ while index < sass_lines.length end index += 1 end -puts icons.length index = 0 while index < svg_lines.length @@ -32,13 +26,19 @@ while index < svg_lines.length if line.start_with? '