prawn-icon 3.0.0 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -0
- data/Gemfile +2 -0
- data/README.md +2 -0
- data/data/fonts/mdi/LICENSE +20 -0
- data/data/fonts/mdi/materialdesignicons-webfont.ttf +0 -0
- data/data/fonts/mdi/mdi.yml +7099 -0
- data/examples/mdi.rb +36 -0
- data/lib/prawn/icon/base.rb +2 -2
- data/lib/prawn/icon/compatibility.rb +14 -17
- data/lib/prawn/icon/configuration.rb +3 -3
- data/lib/prawn/icon/errors.rb +2 -2
- data/lib/prawn/icon/font_data.rb +14 -12
- data/lib/prawn/icon/interface.rb +3 -5
- data/lib/prawn/icon/parser.rb +14 -12
- data/lib/prawn/icon/version.rb +3 -3
- data/lib/prawn/icon.rb +2 -2
- data/prawn-icon.gemspec +12 -10
- data/spec/integration/icon_spec.rb +9 -0
- metadata +32 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e7ca84b49c7dec787359183a4463564c18a8c19d3f63102b993158cb6255c3c
|
4
|
+
data.tar.gz: a8c108c9a784f9a4099c3a45c4c28da31f52c18c750ea345202f7d45f3b77edc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c942f64df65a7323b09878afb2edf3c2f1e925a6bafa2ba64b9b90389ecd87421c777f583d71fe561691d5085a452f594c2f2c5fa816fe700ffe161ca5e0ef9
|
7
|
+
data.tar.gz: a1280d20c8962daaf8d8a110d784b2ae2cc1bb8c763e1aaae76593b274c9af0084debb3967740bf4a309ef7634f2d1d1a4d8421ab125c371e412b340d48feee1
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,22 @@
|
|
1
|
+
# 3.1.0 - September 1, 2022
|
2
|
+
|
3
|
+
* Update our CI matrix to include recent versions of Prawn and Ruby! Thanks @petergoldstein! (#55)
|
4
|
+
* Resolve a few code smells that were flagged by Rubocop.
|
5
|
+
* [Material Design Icons](https://materialdesignicons.com) are now supported! Currently version `7.0.96` is included. Thanks @maneex! [https://github.com/jessedoyle/prawn-icon/pull/59](Pull Request).
|
6
|
+
* Memoize calls to `Prawn::Icon::FontData#path` to improve performance.
|
7
|
+
|
8
|
+
#### Material Design Icons
|
9
|
+
|
10
|
+
All Material Design Icons use the font prefix of `mdi`. That means that you're able to reference an icon as follows:
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'prawn/icon'
|
14
|
+
|
15
|
+
Prawn::Document.generate('icons.pdf') do |pdf|
|
16
|
+
pdf.icon 'mdi-beer', size: 60
|
17
|
+
end
|
18
|
+
```
|
19
|
+
|
1
20
|
# 3.0.0 - November 10, 2020
|
2
21
|
|
3
22
|
* **breaking change** - Fix incorrect layout and line-wrapping logic for inline-formatted icons. Please see [Inline Format Changes](#inline-format-changes) for more details.
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -9,6 +9,7 @@ Prawn::Icon provides a simple mechanism for rendering icons and icon fonts from
|
|
9
9
|
The following icon fonts ship with Prawn::Icon:
|
10
10
|
|
11
11
|
* FontAwesome (http://fontawesome.io/icons/)
|
12
|
+
* Material Design Icons (https://materialdesignicons.com/)
|
12
13
|
* Foundation Icons (http://zurb.com/playground/foundation-icon-fonts-3)
|
13
14
|
* PaymentFont (https://paymentfont.com)
|
14
15
|
|
@@ -87,6 +88,7 @@ Currently supported prefixes include:
|
|
87
88
|
* `fab` - [FontAwesome Brands](https://fontawesome.com/icons?d=gallery&s=brands&m=free) (eg. `fab-amazon`).
|
88
89
|
* `far` - [FontAwesome Regular](https://fontawesome.com/icons?d=gallery&s=regular&m=free) (eg. `far-address-book`).
|
89
90
|
* `fas` - [FontAwesome Solid](https://fontawesome.com/icons?d=gallery&s=solid&m=free) (eg. `fas-location-arrow`).
|
91
|
+
* `mdi` - [Material Design Icons](https://materialdesignicons.com/) (eg. `mdi-beer`),
|
90
92
|
* `fi` - [Foundation Icons](https://zurb.com/playground/foundation-icon-fonts-3) (eg. `fi-compass`).
|
91
93
|
* `pf` - [PaymentFont](https://paymentfont.com/#icons) (eg. `pf-cash`).
|
92
94
|
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Pictogrammers Free License
|
2
|
+
--------------------------
|
3
|
+
|
4
|
+
This icon collection is released as free, open source, and GPL friendly by
|
5
|
+
the [Pictogrammers](http://pictogrammers.com/) icon group. You may use it
|
6
|
+
for commercial projects, open source projects, or anything really.
|
7
|
+
|
8
|
+
# Icons: Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0)
|
9
|
+
Some of the icons are redistributed under the Apache 2.0 license. All other
|
10
|
+
icons are either redistributed under their respective licenses or are
|
11
|
+
distributed under the Apache 2.0 license.
|
12
|
+
|
13
|
+
# Fonts: Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0)
|
14
|
+
All web and desktop fonts are distributed under the Apache 2.0 license. Web
|
15
|
+
and desktop fonts contain some icons that are redistributed under the Apache
|
16
|
+
2.0 license. All other icons are either redistributed under their respective
|
17
|
+
licenses or are distributed under the Apache 2.0 license.
|
18
|
+
|
19
|
+
# Code: MIT (https://opensource.org/licenses/MIT)
|
20
|
+
The MIT license applies to all non-font and non-icon files.
|
Binary file
|