Skip to content

Commit

Permalink
Merge pull request #67 from Mogztter/issue-icons-svg
Browse files Browse the repository at this point in the history
Add FontAwesome 5 support
  • Loading branch information
ggrossetie authored Oct 22, 2019
2 parents 7fba3a1 + b9ffd3c commit bc77278
Show file tree
Hide file tree
Showing 10 changed files with 30,538 additions and 4 deletions.
28 changes: 27 additions & 1 deletion examples/document/basic-example.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ Here's how you say "`Hello, World!`" in Prawn:
require 'prawn'
Prawn::Document.generate 'example.pdf' do
text 'Hello, World!'
text 'Hello, World!' // <1>
end
----
<1> Add `Hello, World!` as text

== Equations and Formulas

Expand All @@ -45,6 +46,31 @@ sqrt(4) = 2
Water (stem:[H_2O]) is a critical component.
--

== Icons

:icons: font
//:icontype: svg

.Size & title
Do you want to drink a small icon:cocktail[sm] or a tall icon:beer[2x,title=pint] ?

.Fixed-width
icon:ruler-vertical[fw] vertical ruler +
icon:ruler-horizontal[fw] horizontal ruler

.Rotate
icon:flag[rotate=90] +
icon:flag[rotate=180] +
icon:flag[rotate=270] +
icon:flag[flip=horizontal] +
icon:flag[flip=vertical]

.Roles
icon:heart[role=is-primary] icon:heart[role=is-success] icon:heart[role=is-warning] icon:heart[role=is-danger]

.Set
icon:address-book[set=far] icon:address-book[] icon:chrome@fab[]

== Conclusion

That's all, folks!
Loading

0 comments on commit bc77278

Please sign in to comment.