Sha256: 386a1a6f4b636fea737a684eb6041853a88285c1996c5d5238065e82d1c0de0e
Contents?: true
Size: 484 Bytes
Versions: 4
Compression:
Stored size: 484 Bytes
Contents
module Elegant class Typography include Prawn::View def initialize(document, options = {}) @document = document end # Set the fonts for the document. Fonts are provided via configuration and # a 'Fallback' font must be set to be used for special characters. A # 'Sans Serif' font is also required for titles and headers. def set_fonts font_families.update Elegant.configuration.fonts fallback_fonts ['Fallback'] end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
elegant-1.2.1 | lib/elegant/typography.rb |
elegant-1.2.0 | lib/elegant/typography.rb |
elegant-1.1.0 | lib/elegant/typography.rb |
elegant-1.0.0 | lib/elegant/typography.rb |