Sha256: 08af03e8e6dd0f225579a477b2d4e6ba70e508021f96d9167e2151b85450c9ed
Contents?: true
Size: 875 Bytes
Versions: 9
Compression:
Stored size: 875 Bytes
Contents
# All example code may be executed by calling `rake legend` require_relative '../lib/prawn/icon' require_relative 'example_helper' Prawn::Document.generate('foundation_icons.pdf') do deja_path = File.join \ Prawn::Icon::Base::FONTDIR, 'DejaVuSans.ttf' font_families.update({ 'deja' => { normal: deja_path } }) font('deja') icons = icon_keys(self, 'fi') required_pages = number_of_pages(self, 'fi') define_grid(columns: 6, rows: 12, gutter: 16) sub_header = 'Zurb Foundation Icons' link = 'http://zurb.com/playground/foundation-icon-fonts-3' page_header sub_header, link first_page_icons icons do |icon_key| # Just call the +icon+ method and pass in an icon key icon icon_key, size: 20, align: :center end start_new_page page_icons icons, required_pages do |icon_key| icon icon_key, size: 20, align: :center end end
Version data entries
9 entries across 9 versions & 1 rubygems