summaryrefslogtreecommitdiffstats
path: root/scripts/createThemeIconsFont
blob: d95018ef6294df0c10911ce46c356e929bd6fe89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/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/base/fonts/ and run
# the script there

Open("FontAwesome.otf")

# Icons used in themes
Select(0u0020)
SelectMore(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(0uf0c9)
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("themeicons.otf")

# themeicons.otf converted to webfonts using http://www.fontsquirrel.com/tools/webfont-generator and
# themeicons-generator_config.txt