Sha256: 9ea9af8ddcd1d69ba72ae70b3f38e7a7d1177efa2c16b721bcc3d7c8e685f1c5
Contents?: true
Size: 460 Bytes
Versions: 14
Compression:
Stored size: 460 Bytes
Contents
module BrDanfe class DocumentBuilder def self.build(*args, &block) document = Prawn::Document.new(*args, &block) document.font_families['tinos'] = { bold: "#{BrDanfe.root_path}/fonts/tinos_bold.ttf", italic: "#{BrDanfe.root_path}/fonts/tinos_italic.ttf", bold_italic: "#{BrDanfe.root_path}/fonts/tinos_bold_italic.ttf", normal: "#{BrDanfe.root_path}/fonts/tinos.ttf" } document end end end
Version data entries
14 entries across 14 versions & 1 rubygems