Class: FontAwesome

Inherits:
Object
  • Object
show all
Defined in:
lib/fontawesome/font_awesome.rb

Class Method Summary collapse

Class Method Details

.fontWithSize(size) ⇒ Object



230
231
232
# File 'lib/fontawesome/font_awesome.rb', line 230

def FontAwesome.fontWithSize(size)
    return UIFont.fontWithName("FontAwesome", size:size)
end

.icon(type) ⇒ Object



222
223
224
225
226
227
228
# File 'lib/fontawesome/font_awesome.rb', line 222

def FontAwesome.icon(type)
    if iconDef.key?(type)
        return iconDef[type].chr(Encoding::UTF_8)
    else
        return ''
    end
end

.iconDefObject

.icon-(.*):before.*{ content: “\(.*)”; } “$1” => 0x$2,



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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
# File 'lib/fontawesome/font_awesome.rb', line 5

def FontAwesome.iconDef
    @iconDef ||= begin
        {
            "glass" => 0xf000,
            "music" => 0xf001,
            "search" => 0xf002,
            "envelope" => 0xf003,
            "heart" => 0xf004,
            "star" => 0xf005,
            "star-empty" => 0xf006,
            "user" => 0xf007,
            "film" => 0xf008,
            "th-large" => 0xf009,
            "th" => 0xf00a,
            "th-list" => 0xf00b,
            "ok" => 0xf00c,
            "remove" => 0xf00d,
            "zoom-in" => 0xf00e,
            "zoom-out" => 0xf010,
            "off" => 0xf011,
            "signal" => 0xf012,
            "cog" => 0xf013,
            "trash" => 0xf014,
            "home" => 0xf015,
            "file" => 0xf016,
            "time" => 0xf017,
            "road" => 0xf018,
            "download-alt" => 0xf019,
            "download" => 0xf01a,
            "upload" => 0xf01b,
            "inbox" => 0xf01c,
            "play-circle" => 0xf01d,
            "repeat" => 0xf01e,
            "refresh" => 0xf021,
            "list-alt" => 0xf022,
            "lock" => 0xf023,
            "flag" => 0xf024,
            "headphones" => 0xf025,
            "volume-off" => 0xf026,
            "volume-down" => 0xf027,
            "volume-up" => 0xf028,
            "qrcode" => 0xf029,
            "barcode" => 0xf02a,
            "tag" => 0xf02b,
            "tags" => 0xf02c,
            "book" => 0xf02d,
            "bookmark" => 0xf02e,
            "print" => 0xf02f,
            "camera" => 0xf030,
            "font" => 0xf031,
            "bold" => 0xf032,
            "italic" => 0xf033,
            "text-height" => 0xf034,
            "text-width" => 0xf035,
            "align-left" => 0xf036,
            "align-center" => 0xf037,
            "align-right" => 0xf038,
            "align-justify" => 0xf039,
            "list" => 0xf03a,
            "indent-left" => 0xf03b,
            "indent-right" => 0xf03c,
            "facetime-video" => 0xf03d,
            "picture" => 0xf03e,
            "pencil" => 0xf040,
            "map-marker" => 0xf041,
            "adjust" => 0xf042,
            "tint" => 0xf043,
            "edit" => 0xf044,
            "share" => 0xf045,
            "check" => 0xf046,
            "move" => 0xf047,
            "step-backward" => 0xf048,
            "fast-backward" => 0xf049,
            "backward" => 0xf04a,
            "play" => 0xf04b,
            "pause" => 0xf04c,
            "stop" => 0xf04d,
            "forward" => 0xf04e,
            "fast-forward" => 0xf050,
            "step-forward" => 0xf051,
            "eject" => 0xf052,
            "chevron-left" => 0xf053,
            "chevron-right" => 0xf054,
            "plus-sign" => 0xf055,
            "minus-sign" => 0xf056,
            "remove-sign" => 0xf057,
            "ok-sign" => 0xf058,
            "question-sign" => 0xf059,
            "info-sign" => 0xf05a,
            "screenshot" => 0xf05b,
            "remove-circle" => 0xf05c,
            "ok-circle" => 0xf05d,
            "ban-circle" => 0xf05e,
            "arrow-left" => 0xf060,
            "arrow-right" => 0xf061,
            "arrow-up" => 0xf062,
            "arrow-down" => 0xf063,
            "share-alt" => 0xf064,
            "resize-full" => 0xf065,
            "resize-small" => 0xf066,
            "plus" => 0xf067,
            "minus" => 0xf068,
            "asterisk" => 0xf069,
            "exclamation-sign" => 0xf06a,
            "gift" => 0xf06b,
            "leaf" => 0xf06c,
            "fire" => 0xf06d,
            "eye-open" => 0xf06e,
            "eye-close" => 0xf070,
            "warning-sign" => 0xf071,
            "plane" => 0xf072,
            "calendar" => 0xf073,
            "random" => 0xf074,
            "comment" => 0xf075,
            "magnet" => 0xf076,
            "chevron-up" => 0xf077,
            "chevron-down" => 0xf078,
            "retweet" => 0xf079,
            "shopping-cart" => 0xf07a,
            "folder-close" => 0xf07b,
            "folder-open" => 0xf07c,
            "resize-vertical" => 0xf07d,
            "resize-horizontal" => 0xf07e,
            "bar-chart" => 0xf080,
            "twitter-sign" => 0xf081,
            "facebook-sign" => 0xf082,
            "camera-retro" => 0xf083,
            "key" => 0xf084,
            "cogs" => 0xf085,
            "comments" => 0xf086,
            "thumbs-up" => 0xf087,
            "thumbs-down" => 0xf088,
            "star-half" => 0xf089,
            "heart-empty" => 0xf08a,
            "signout" => 0xf08b,
            "linkedin-sign" => 0xf08c,
            "pushpin" => 0xf08d,
            "external-link" => 0xf08e,
            "signin" => 0xf090,
            "trophy" => 0xf091,
            "github-sign" => 0xf092,
            "upload-alt" => 0xf093,
            "lemon" => 0xf094,
            "phone" => 0xf095,
            "check-empty" => 0xf096,
            "bookmark-empty" => 0xf097,
            "phone-sign" => 0xf098,
            "twitter" => 0xf099,
            "facebook" => 0xf09a,
            "github" => 0xf09b,
            "unlock" => 0xf09c,
            "credit-card" => 0xf09d,
            "rss" => 0xf09e,
            "hdd" => 0xf0a0,
            "bullhorn" => 0xf0a1,
            "bell" => 0xf0a2,
            "certificate" => 0xf0a3,
            "hand-right" => 0xf0a4,
            "hand-left" => 0xf0a5,
            "hand-up" => 0xf0a6,
            "hand-down" => 0xf0a7,
            "circle-arrow-left" => 0xf0a8,
            "circle-arrow-right" => 0xf0a9,
            "circle-arrow-up" => 0xf0aa,
            "circle-arrow-down" => 0xf0ab,
            "globe" => 0xf0ac,
            "wrench" => 0xf0ad,
            "tasks" => 0xf0ae,
            "filter" => 0xf0b0,
            "briefcase" => 0xf0b1,
            "fullscreen" => 0xf0b2,
            "group" => 0xf0c0,
            "link" => 0xf0c1,
            "cloud" => 0xf0c2,
            "beaker" => 0xf0c3,
            "cut" => 0xf0c4,
            "copy" => 0xf0c5,
            "paper-clip" => 0xf0c6,
            "save" => 0xf0c7,
            "sign-blank" => 0xf0c8,
            "reorder" => 0xf0c9,
            "list-ul" => 0xf0ca,
            "list-ol" => 0xf0cb,
            "strikethrough" => 0xf0cc,
            "underline" => 0xf0cd,
            "table" => 0xf0ce,
            "magic" => 0xf0d0,
            "truck" => 0xf0d1,
            "pinterest" => 0xf0d2,
            "pinterest-sign" => 0xf0d3,
            "google-plus-sign" => 0xf0d4,
            "google-plus" => 0xf0d5,
            "money" => 0xf0d6,
            "caret-down" => 0xf0d7,
            "caret-up" => 0xf0d8,
            "caret-left" => 0xf0d9,
            "caret-right" => 0xf0da,
            "columns" => 0xf0db,
            "sort" => 0xf0dc,
            "sort-down" => 0xf0dd,
            "sort-up" => 0xf0de,
            "envelope-alt" => 0xf0e0,
            "linkedin" => 0xf0e1,
            "undo" => 0xf0e2,
            "legal" => 0xf0e3,
            "dashboard" => 0xf0e4,
            "comment-alt" => 0xf0e5,
            "comments-alt" => 0xf0e6,
            "bolt" => 0xf0e7,
            "sitemap" => 0xf0e8,
            "umbrella" => 0xf0e9,
            "paste" => 0xf0ea,
            "user-md" => 0xf200,
        };
    end
end