Module: RBPDFFontDescriptor
- Defined in:
- lib/rbpdf.rb
Constant Summary collapse
- @@descriptors =
{ 'freesans' => {} }
- @@font_name =
'freesans'
Class Method Summary collapse
Class Method Details
.define(font_name = 'freesans') {|| ... } ⇒ Object
79 80 81 82 |
# File 'lib/rbpdf.rb', line 79 def self.define(font_name = 'freesans') @@descriptors[font_name] ||= {} yield @@descriptors[font_name] end |
.font(font_name) ⇒ Object
75 76 77 |
# File 'lib/rbpdf.rb', line 75 def self.font(font_name) @@descriptors[font_name.gsub(".rb", "")] end |