prawn-icon 2.1.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +57 -1
- data/README.md +11 -1
- data/Rakefile +0 -1
- data/data/fonts/fa4/shims.yml +462 -0
- data/data/fonts/fab/LICENSE +1 -1
- data/data/fonts/fab/fa-brands.ttf +0 -0
- data/data/fonts/fab/fab.yml +131 -3
- data/data/fonts/far/LICENSE +1 -1
- data/data/fonts/far/fa-regular.ttf +0 -0
- data/data/fonts/far/far.yml +37 -1
- data/data/fonts/fas/LICENSE +1 -1
- data/data/fonts/fas/fa-solid.ttf +0 -0
- data/data/fonts/fas/fas.yml +503 -1
- data/examples/fontawesome.rb +3 -2
- data/examples/foundation_icons.rb +3 -2
- data/examples/paymentfont.rb +4 -3
- data/lib/prawn/icon.rb +2 -0
- data/lib/prawn/icon/base.rb +14 -2
- data/lib/prawn/icon/compatibility.rb +17 -130
- data/lib/prawn/icon/configuration.rb +40 -0
- data/lib/prawn/icon/font_data.rb +5 -3
- data/lib/prawn/icon/interface.rb +35 -8
- data/lib/prawn/icon/version.rb +1 -1
- data/spec/integration/icon_spec.rb +67 -15
- data/spec/unit/base_spec.rb +25 -6
- data/spec/unit/configuration_spec.rb +21 -0
- data/spec/unit/errors/icon_key_empty_spec.rb +1 -3
- data/spec/unit/errors/icon_not_found_spec.rb +1 -3
- data/spec/unit/font_data_spec.rb +9 -9
- data/spec/unit/icon_spec.rb +15 -15
- data/spec/unit/parser_spec.rb +6 -4
- metadata +9 -7
data/data/fonts/fab/LICENSE
CHANGED
@@ -3,7 +3,7 @@ Font Awesome Free License
|
|
3
3
|
|
4
4
|
Font Awesome Free is free, open source, and GPL friendly. You can use it for
|
5
5
|
commercial projects, open source projects, or really almost whatever you want.
|
6
|
-
Full Font Awesome Free license: https://fontawesome.com/license.
|
6
|
+
Full Font Awesome Free license: https://fontawesome.com/license/free.
|
7
7
|
|
8
8
|
# Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/)
|
9
9
|
In the Font Awesome Free download, the CC BY 4.0 license applies to all icons
|
Binary file
|
data/data/fonts/fab/fab.yml
CHANGED
@@ -1,13 +1,16 @@
|
|
1
1
|
---
|
2
2
|
fab:
|
3
|
-
__font_version__: 5.
|
3
|
+
__font_version__: 5.15.1
|
4
4
|
500px: ""
|
5
5
|
accessible-icon: ""
|
6
6
|
accusoft: ""
|
7
|
+
acquisitions-incorporated: ""
|
7
8
|
adn: ""
|
8
9
|
adversal: ""
|
9
10
|
affiliatetheme: ""
|
11
|
+
airbnb: ""
|
10
12
|
algolia: ""
|
13
|
+
alipay: ""
|
11
14
|
amazon: ""
|
12
15
|
amazon-pay: ""
|
13
16
|
amilia: ""
|
@@ -20,13 +23,16 @@ fab:
|
|
20
23
|
apper: ""
|
21
24
|
apple: ""
|
22
25
|
apple-pay: ""
|
26
|
+
artstation: ""
|
23
27
|
asymmetrik: ""
|
28
|
+
atlassian: ""
|
24
29
|
audible: ""
|
25
30
|
autoprefixer: ""
|
26
31
|
avianex: ""
|
27
32
|
aviato: ""
|
28
33
|
aws: ""
|
29
34
|
bandcamp: ""
|
35
|
+
battle-net: ""
|
30
36
|
behance: ""
|
31
37
|
behance-square: ""
|
32
38
|
bimobject: ""
|
@@ -39,9 +45,13 @@ fab:
|
|
39
45
|
blogger-b: ""
|
40
46
|
bluetooth: ""
|
41
47
|
bluetooth-b: ""
|
48
|
+
bootstrap: ""
|
42
49
|
btc: ""
|
50
|
+
buffer: ""
|
43
51
|
buromobelexperte: ""
|
52
|
+
buy-n-large: ""
|
44
53
|
buysellads: ""
|
54
|
+
canadian-maple-leaf: ""
|
45
55
|
cc-amazon-pay: ""
|
46
56
|
cc-amex: ""
|
47
57
|
cc-apple-pay: ""
|
@@ -53,25 +63,50 @@ fab:
|
|
53
63
|
cc-stripe: ""
|
54
64
|
cc-visa: ""
|
55
65
|
centercode: ""
|
66
|
+
centos: ""
|
56
67
|
chrome: ""
|
68
|
+
chromecast: ""
|
69
|
+
cloudflare: ""
|
57
70
|
cloudscale: ""
|
58
71
|
cloudsmith: ""
|
59
72
|
cloudversify: ""
|
60
73
|
codepen: ""
|
61
74
|
codiepie: ""
|
75
|
+
confluence: ""
|
62
76
|
connectdevelop: ""
|
63
77
|
contao: ""
|
78
|
+
cotton-bureau: ""
|
64
79
|
cpanel: ""
|
65
80
|
creative-commons: ""
|
81
|
+
creative-commons-by: ""
|
82
|
+
creative-commons-nc: ""
|
83
|
+
creative-commons-nc-eu: ""
|
84
|
+
creative-commons-nc-jp: ""
|
85
|
+
creative-commons-nd: ""
|
86
|
+
creative-commons-pd: ""
|
87
|
+
creative-commons-pd-alt: ""
|
88
|
+
creative-commons-remix: ""
|
89
|
+
creative-commons-sa: ""
|
90
|
+
creative-commons-sampling: ""
|
91
|
+
creative-commons-sampling-plus: ""
|
92
|
+
creative-commons-share: ""
|
93
|
+
creative-commons-zero: ""
|
94
|
+
critical-role: ""
|
66
95
|
css3: ""
|
67
96
|
css3-alt: ""
|
68
97
|
cuttlefish: ""
|
69
98
|
d-and-d: ""
|
99
|
+
d-and-d-beyond: ""
|
100
|
+
dailymotion: ""
|
70
101
|
dashcube: ""
|
102
|
+
deezer: ""
|
71
103
|
delicious: ""
|
72
104
|
deploydog: ""
|
73
105
|
deskpro: ""
|
106
|
+
dev: ""
|
74
107
|
deviantart: ""
|
108
|
+
dhl: ""
|
109
|
+
diaspora: ""
|
75
110
|
digg: ""
|
76
111
|
digital-ocean: ""
|
77
112
|
discord: ""
|
@@ -85,21 +120,31 @@ fab:
|
|
85
120
|
drupal: ""
|
86
121
|
dyalog: ""
|
87
122
|
earlybirds: ""
|
123
|
+
ebay: ""
|
88
124
|
edge: ""
|
125
|
+
edge-legacy: ""
|
89
126
|
elementor: ""
|
127
|
+
ello: ""
|
90
128
|
ember: ""
|
91
129
|
empire: ""
|
92
130
|
envira: ""
|
93
131
|
erlang: ""
|
94
132
|
ethereum: ""
|
95
133
|
etsy: ""
|
134
|
+
evernote: ""
|
96
135
|
expeditedssl: ""
|
97
136
|
facebook: ""
|
98
137
|
facebook-f: ""
|
99
138
|
facebook-messenger: ""
|
100
139
|
facebook-square: ""
|
140
|
+
fantasy-flight-games: ""
|
141
|
+
fedex: ""
|
142
|
+
fedora: ""
|
143
|
+
figma: ""
|
101
144
|
firefox: ""
|
145
|
+
firefox-browser: ""
|
102
146
|
first-order: ""
|
147
|
+
first-order-alt: ""
|
103
148
|
firstdraft: ""
|
104
149
|
flickr: ""
|
105
150
|
flipboard: ""
|
@@ -107,6 +152,7 @@ fab:
|
|
107
152
|
font-awesome: ""
|
108
153
|
font-awesome-alt: ""
|
109
154
|
font-awesome-flag: ""
|
155
|
+
font-awesome-logo-full: ""
|
110
156
|
fonticons: ""
|
111
157
|
fonticons-fi: ""
|
112
158
|
fort-awesome: ""
|
@@ -115,10 +161,14 @@ fab:
|
|
115
161
|
foursquare: ""
|
116
162
|
free-code-camp: ""
|
117
163
|
freebsd: ""
|
164
|
+
fulcrum: ""
|
165
|
+
galactic-republic: ""
|
166
|
+
galactic-senate: ""
|
118
167
|
get-pocket: ""
|
119
168
|
gg: ""
|
120
169
|
gg-circle: ""
|
121
170
|
git: ""
|
171
|
+
git-alt: ""
|
122
172
|
git-square: ""
|
123
173
|
github: ""
|
124
174
|
github-alt: ""
|
@@ -133,6 +183,7 @@ fab:
|
|
133
183
|
goodreads-g: ""
|
134
184
|
google: ""
|
135
185
|
google-drive: ""
|
186
|
+
google-pay: ""
|
136
187
|
google-play: ""
|
137
188
|
google-plus: ""
|
138
189
|
google-plus-g: ""
|
@@ -142,28 +193,44 @@ fab:
|
|
142
193
|
grav: ""
|
143
194
|
gripfire: ""
|
144
195
|
grunt: ""
|
196
|
+
guilded: ""
|
145
197
|
gulp: ""
|
146
198
|
hacker-news: ""
|
147
199
|
hacker-news-square: ""
|
200
|
+
hackerrank: ""
|
148
201
|
hips: ""
|
149
202
|
hire-a-helper: ""
|
203
|
+
hive: ""
|
150
204
|
hooli: ""
|
205
|
+
hornbill: ""
|
151
206
|
hotjar: ""
|
152
207
|
houzz: ""
|
153
208
|
html5: ""
|
154
209
|
hubspot: ""
|
210
|
+
ideal: ""
|
155
211
|
imdb: ""
|
212
|
+
innosoft: ""
|
156
213
|
instagram: ""
|
214
|
+
instagram-square: ""
|
215
|
+
instalod: ""
|
216
|
+
intercom: ""
|
157
217
|
internet-explorer: ""
|
218
|
+
invision: ""
|
158
219
|
ioxhost: ""
|
220
|
+
itch-io: ""
|
159
221
|
itunes: ""
|
160
222
|
itunes-note: ""
|
223
|
+
java: ""
|
224
|
+
jedi-order: ""
|
161
225
|
jenkins: ""
|
226
|
+
jira: ""
|
162
227
|
joget: ""
|
163
228
|
joomla: ""
|
164
229
|
js: ""
|
165
230
|
js-square: ""
|
166
231
|
jsfiddle: ""
|
232
|
+
kaggle: ""
|
233
|
+
keybase: ""
|
167
234
|
keycdn: ""
|
168
235
|
kickstarter: ""
|
169
236
|
kickstarter-k: ""
|
@@ -180,44 +247,62 @@ fab:
|
|
180
247
|
linux: ""
|
181
248
|
lyft: ""
|
182
249
|
magento: ""
|
250
|
+
mailchimp: ""
|
251
|
+
mandalorian: ""
|
252
|
+
markdown: ""
|
253
|
+
mastodon: ""
|
183
254
|
maxcdn: ""
|
255
|
+
mdb: ""
|
184
256
|
medapps: ""
|
185
257
|
medium: ""
|
186
258
|
medium-m: ""
|
187
259
|
medrt: ""
|
188
260
|
meetup: ""
|
261
|
+
megaport: ""
|
262
|
+
mendeley: ""
|
263
|
+
microblog: ""
|
189
264
|
microsoft: ""
|
190
265
|
mix: ""
|
191
266
|
mixcloud: ""
|
267
|
+
mixer: ""
|
192
268
|
mizuni: ""
|
193
269
|
modx: ""
|
194
270
|
monero: ""
|
195
271
|
napster: ""
|
196
|
-
|
272
|
+
neos: ""
|
273
|
+
nimblr: ""
|
197
274
|
node: ""
|
198
275
|
node-js: ""
|
199
276
|
npm: ""
|
200
277
|
ns8: ""
|
201
278
|
nutritionix: ""
|
279
|
+
octopus-deploy: ""
|
202
280
|
odnoklassniki: ""
|
203
281
|
odnoklassniki-square: ""
|
282
|
+
old-republic: ""
|
204
283
|
opencart: ""
|
205
284
|
openid: ""
|
206
285
|
opera: ""
|
207
286
|
optin-monster: ""
|
287
|
+
orcid: ""
|
208
288
|
osi: ""
|
209
289
|
page4: ""
|
210
290
|
pagelines: ""
|
211
291
|
palfed: ""
|
212
292
|
patreon: ""
|
213
293
|
paypal: ""
|
294
|
+
penny-arcade: ""
|
295
|
+
perbyte: ""
|
214
296
|
periscope: ""
|
215
297
|
phabricator: ""
|
216
298
|
phoenix-framework: ""
|
299
|
+
phoenix-squadron: ""
|
217
300
|
php: ""
|
218
301
|
pied-piper: ""
|
219
302
|
pied-piper-alt: ""
|
303
|
+
pied-piper-hat: ""
|
220
304
|
pied-piper-pp: ""
|
305
|
+
pied-piper-square: ""
|
221
306
|
pinterest: ""
|
222
307
|
pinterest-p: ""
|
223
308
|
pinterest-square: ""
|
@@ -228,20 +313,28 @@ fab:
|
|
228
313
|
qq: ""
|
229
314
|
quinscape: ""
|
230
315
|
quora: ""
|
316
|
+
r-project: ""
|
317
|
+
raspberry-pi: ""
|
231
318
|
ravelry: ""
|
232
319
|
react: ""
|
320
|
+
reacteurope: ""
|
321
|
+
readme: ""
|
233
322
|
rebel: ""
|
234
323
|
red-river: ""
|
235
324
|
reddit: ""
|
236
325
|
reddit-alien: ""
|
237
326
|
reddit-square: ""
|
238
|
-
|
327
|
+
redhat: ""
|
239
328
|
renren: ""
|
240
329
|
replyd: ""
|
330
|
+
researchgate: ""
|
241
331
|
resolving: ""
|
332
|
+
rev: ""
|
242
333
|
rocketchat: ""
|
243
334
|
rockrms: ""
|
335
|
+
rust: ""
|
244
336
|
safari: ""
|
337
|
+
salesforce: ""
|
245
338
|
sass: ""
|
246
339
|
schlix: ""
|
247
340
|
scribd: ""
|
@@ -250,8 +343,12 @@ fab:
|
|
250
343
|
sellsy: ""
|
251
344
|
servicestack: ""
|
252
345
|
shirtsinbulk: ""
|
346
|
+
shopify: ""
|
347
|
+
shopware: ""
|
253
348
|
simplybuilt: ""
|
254
349
|
sistrix: ""
|
350
|
+
sith: ""
|
351
|
+
sketch: ""
|
255
352
|
skyatlas: ""
|
256
353
|
skype: ""
|
257
354
|
slack: ""
|
@@ -261,10 +358,14 @@ fab:
|
|
261
358
|
snapchat-ghost: ""
|
262
359
|
snapchat-square: ""
|
263
360
|
soundcloud: ""
|
361
|
+
sourcetree: ""
|
264
362
|
speakap: ""
|
363
|
+
speaker-deck: ""
|
265
364
|
spotify: ""
|
365
|
+
squarespace: ""
|
266
366
|
stack-exchange: ""
|
267
367
|
stack-overflow: ""
|
368
|
+
stackpath: ""
|
268
369
|
staylinked: ""
|
269
370
|
steam: ""
|
270
371
|
steam-square: ""
|
@@ -278,10 +379,19 @@ fab:
|
|
278
379
|
stumbleupon-circle: ""
|
279
380
|
superpowers: ""
|
280
381
|
supple: ""
|
382
|
+
suse: ""
|
383
|
+
swift: ""
|
384
|
+
symfony: ""
|
385
|
+
teamspeak: ""
|
281
386
|
telegram: ""
|
282
387
|
telegram-plane: ""
|
283
388
|
tencent-weibo: ""
|
389
|
+
the-red-yeti: ""
|
390
|
+
themeco: ""
|
284
391
|
themeisle: ""
|
392
|
+
think-peaks: ""
|
393
|
+
tiktok: ""
|
394
|
+
trade-federation: ""
|
285
395
|
trello: ""
|
286
396
|
tripadvisor: ""
|
287
397
|
tumblr: ""
|
@@ -291,10 +401,17 @@ fab:
|
|
291
401
|
twitter-square: ""
|
292
402
|
typo3: ""
|
293
403
|
uber: ""
|
404
|
+
ubuntu: ""
|
294
405
|
uikit: ""
|
406
|
+
umbraco: ""
|
407
|
+
uncharted: ""
|
295
408
|
uniregistry: ""
|
409
|
+
unity: ""
|
410
|
+
unsplash: ""
|
296
411
|
untappd: ""
|
412
|
+
ups: ""
|
297
413
|
usb: ""
|
414
|
+
usps: ""
|
298
415
|
ussunnah: ""
|
299
416
|
vaadin: ""
|
300
417
|
viacoin: ""
|
@@ -308,6 +425,9 @@ fab:
|
|
308
425
|
vk: ""
|
309
426
|
vnv: ""
|
310
427
|
vuejs: ""
|
428
|
+
watchman-monitoring: ""
|
429
|
+
waze: ""
|
430
|
+
weebly: ""
|
311
431
|
weibo: ""
|
312
432
|
weixin: ""
|
313
433
|
whatsapp: ""
|
@@ -315,19 +435,27 @@ fab:
|
|
315
435
|
whmcs: ""
|
316
436
|
wikipedia-w: ""
|
317
437
|
windows: ""
|
438
|
+
wix: ""
|
439
|
+
wizards-of-the-coast: ""
|
440
|
+
wodu: ""
|
441
|
+
wolf-pack-battalion: ""
|
318
442
|
wordpress: ""
|
319
443
|
wordpress-simple: ""
|
320
444
|
wpbeginner: ""
|
321
445
|
wpexplorer: ""
|
322
446
|
wpforms: ""
|
447
|
+
wpressr: ""
|
323
448
|
xbox: ""
|
324
449
|
xing: ""
|
325
450
|
xing-square: ""
|
326
451
|
y-combinator: ""
|
327
452
|
yahoo: ""
|
453
|
+
yammer: ""
|
328
454
|
yandex: ""
|
329
455
|
yandex-international: ""
|
456
|
+
yarn: ""
|
330
457
|
yelp: ""
|
331
458
|
yoast: ""
|
332
459
|
youtube: ""
|
333
460
|
youtube-square: ""
|
461
|
+
zhihu: ""
|
data/data/fonts/far/LICENSE
CHANGED
@@ -3,7 +3,7 @@ Font Awesome Free License
|
|
3
3
|
|
4
4
|
Font Awesome Free is free, open source, and GPL friendly. You can use it for
|
5
5
|
commercial projects, open source projects, or really almost whatever you want.
|
6
|
-
Full Font Awesome Free license: https://fontawesome.com/license.
|
6
|
+
Full Font Awesome Free license: https://fontawesome.com/license/free.
|
7
7
|
|
8
8
|
# Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/)
|
9
9
|
In the Font Awesome Free download, the CC BY 4.0 license applies to all icons
|
Binary file
|
data/data/fonts/far/far.yml
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
---
|
2
2
|
far:
|
3
|
-
__font_version__: 5.
|
3
|
+
__font_version__: 5.15.1
|
4
4
|
address-book: ""
|
5
5
|
address-card: ""
|
6
|
+
angry: ""
|
6
7
|
arrow-alt-circle-down: ""
|
7
8
|
arrow-alt-circle-left: ""
|
8
9
|
arrow-alt-circle-right: ""
|
@@ -31,15 +32,18 @@ far:
|
|
31
32
|
closed-captioning: ""
|
32
33
|
comment: ""
|
33
34
|
comment-alt: ""
|
35
|
+
comment-dots: ""
|
34
36
|
comments: ""
|
35
37
|
compass: ""
|
36
38
|
copy: ""
|
37
39
|
copyright: ""
|
38
40
|
credit-card: ""
|
41
|
+
dizzy: ""
|
39
42
|
dot-circle: ""
|
40
43
|
edit: ""
|
41
44
|
envelope: ""
|
42
45
|
envelope-open: ""
|
46
|
+
eye: ""
|
43
47
|
eye-slash: ""
|
44
48
|
file: ""
|
45
49
|
file-alt: ""
|
@@ -53,11 +57,28 @@ far:
|
|
53
57
|
file-video: ""
|
54
58
|
file-word: ""
|
55
59
|
flag: ""
|
60
|
+
flushed: ""
|
56
61
|
folder: ""
|
57
62
|
folder-open: ""
|
63
|
+
font-awesome-logo-full: ""
|
58
64
|
frown: ""
|
65
|
+
frown-open: ""
|
59
66
|
futbol: ""
|
60
67
|
gem: ""
|
68
|
+
grimace: ""
|
69
|
+
grin: ""
|
70
|
+
grin-alt: ""
|
71
|
+
grin-beam: ""
|
72
|
+
grin-beam-sweat: ""
|
73
|
+
grin-hearts: ""
|
74
|
+
grin-squint: ""
|
75
|
+
grin-squint-tears: ""
|
76
|
+
grin-stars: ""
|
77
|
+
grin-tears: ""
|
78
|
+
grin-tongue: ""
|
79
|
+
grin-tongue-squint: ""
|
80
|
+
grin-tongue-wink: ""
|
81
|
+
grin-wink: ""
|
61
82
|
hand-lizard: ""
|
62
83
|
hand-paper: ""
|
63
84
|
hand-peace: ""
|
@@ -79,12 +100,21 @@ far:
|
|
79
100
|
image: ""
|
80
101
|
images: ""
|
81
102
|
keyboard: ""
|
103
|
+
kiss: ""
|
104
|
+
kiss-beam: ""
|
105
|
+
kiss-wink-heart: ""
|
106
|
+
laugh: ""
|
107
|
+
laugh-beam: ""
|
108
|
+
laugh-squint: ""
|
109
|
+
laugh-wink: ""
|
82
110
|
lemon: ""
|
83
111
|
life-ring: ""
|
84
112
|
lightbulb: ""
|
85
113
|
list-alt: ""
|
86
114
|
map: ""
|
87
115
|
meh: ""
|
116
|
+
meh-blank: ""
|
117
|
+
meh-rolling-eyes: ""
|
88
118
|
minus-square: ""
|
89
119
|
money-bill-alt: ""
|
90
120
|
moon: ""
|
@@ -97,9 +127,13 @@ far:
|
|
97
127
|
plus-square: ""
|
98
128
|
question-circle: ""
|
99
129
|
registered: ""
|
130
|
+
sad-cry: ""
|
131
|
+
sad-tear: ""
|
100
132
|
save: ""
|
101
133
|
share-square: ""
|
102
134
|
smile: ""
|
135
|
+
smile-beam: ""
|
136
|
+
smile-wink: ""
|
103
137
|
snowflake: ""
|
104
138
|
square: ""
|
105
139
|
star: ""
|
@@ -107,9 +141,11 @@ far:
|
|
107
141
|
sticky-note: ""
|
108
142
|
stop-circle: ""
|
109
143
|
sun: ""
|
144
|
+
surprise: ""
|
110
145
|
thumbs-down: ""
|
111
146
|
thumbs-up: ""
|
112
147
|
times-circle: ""
|
148
|
+
tired: ""
|
113
149
|
trash-alt: ""
|
114
150
|
user: ""
|
115
151
|
user-circle: ""
|