Sha256: 85dbb398bb19579f3659612173502c23e5f7c3a75f00ee31cf60d353b29e87fc
Contents?: true
Size: 531 Bytes
Versions: 7
Compression:
Stored size: 531 Bytes
Contents
# coding: utf-8 $LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib') require "prawn" Prawn::Document.generate("family_style.pdf") do ["Courier","Helvetica","Times-Roman"].each do |f| [:bold,:bold_italic,:italic,:normal].each do |s| font f, :style => s text "I'm writing in #{f} (#{s})" end end font "Helvetica" text "Normal" text "Bold", :style => :bold text "Bold Italic", :style => :bold_italic text "Italic", :style => :italic text "Normal" end
Version data entries
7 entries across 7 versions & 4 rubygems