Module: TCPDFFontDescriptor
- Defined in:
- lib/tcpdf.rb
Constant Summary collapse
- @@descriptors =
{ 'freesans' => {} }
- @@font_name =
'freesans'
Class Method Summary collapse
Class Method Details
.define(font_name = 'freesans') {|| ... } ⇒ Object
66 67 68 69 |
# File 'lib/tcpdf.rb', line 66 def self.define(font_name = 'freesans') @@descriptors[font_name] ||= {} yield @@descriptors[font_name] end |
.font(font_name) ⇒ Object
62 63 64 |
# File 'lib/tcpdf.rb', line 62 def self.font(font_name) @@descriptors[font_name.gsub(".rb", "")] end |