summaryrefslogtreecommitdiffstats
path: root/scripts/createValoIconsFont
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/createValoIconsFont')
-rwxr-xr-xscripts/createValoIconsFont58
1 files changed, 58 insertions, 0 deletions
diff --git a/scripts/createValoIconsFont b/scripts/createValoIconsFont
new file mode 100755
index 0000000000..b48cf0e1e5
--- /dev/null
+++ b/scripts/createValoIconsFont
@@ -0,0 +1,58 @@
+#!/usr/local/bin/fontforge
+
+# use export FONTFORGE_LANGUAGE=ff before running the script
+
+# to install fontforge on mac, use "brew install fontforge"
+
+# Generated from FontAwesome 4.1:
+# https://github.com/FortAwesome/Font-Awesome/raw/v4.1.0/fonts/FontAwesome.otf
+
+# Download the font to WebContent/VAADIN/themes/valo/fonts/valoicons and run
+# the script there
+
+Open("FontAwesome.otf")
+
+# Icons used in Valo
+Select(0uf00c)
+SelectMore(0uf013)
+SelectMore(0uf032)
+SelectMore(0uf033)
+SelectMore(0uf036)
+SelectMore(0uf037)
+SelectMore(0uf038)
+SelectMore(0uf03b)
+SelectMore(0uf03c)
+SelectMore(0uf03e)
+SelectMore(0uf053)
+SelectMore(0uf054)
+SelectMore(0uf05e)
+SelectMore(0uf073)
+SelectMore(0uf078)
+SelectMore(0uf0c1)
+SelectMore(0uf0ca)
+SelectMore(0uf0cb)
+SelectMore(0uf0cc)
+SelectMore(0uf0cd)
+SelectMore(0uf0d7)
+SelectMore(0uf0d8)
+SelectMore(0uf0d9)
+SelectMore(0uf0da)
+SelectMore(0uf0dd)
+SelectMore(0uf0de)
+SelectMore(0uf100)
+SelectMore(0uf101)
+SelectMore(0uf104)
+SelectMore(0uf105)
+SelectMore(0uf127)
+SelectMore(0uf12b)
+SelectMore(0uf12c)
+SelectMore(0uf12d)
+SelectMore(0uf141)
+
+SelectInvert()
+DetachAndRemoveGlyphs()
+
+Generate("valoicons.otf")
+
+# valoicons.otf converted to webfonts using http://www.fontsquirrel.com/tools/webfont-generator and valoicons-generator_config.txt
+