Method: PDF::Reader::WidthCalculator::TypeOneOrThree#initialize
- Defined in:
- lib/pdf/reader/width_calculator/type_one_or_three.rb
#initialize(font) ⇒ TypeOneOrThree
Returns a new instance of TypeOneOrThree.
9 10 11 12 13 14 15 16 17 |
# File 'lib/pdf/reader/width_calculator/type_one_or_three.rb', line 9 def initialize(font) @font = font if @font.font_descriptor @missing_width = @font.font_descriptor.missing_width else @missing_width = 0 end end |