    # File lib/prawn/font/ttf.rb, line 9
          def initialize(document, name, options={})
            super

            @ttf              = read_ttf_file
            @subsets          = TTFunk::SubsetCollection.new(@ttf)

            @attributes       = {}
            @bounding_boxes   = {}
            @char_widths      = {}
            @has_kerning_data = @ttf.kerning.exists? && @ttf.kerning.tables.any?

            @ascender         = Integer(@ttf.ascent * scale_factor)
            @descender        = Integer(@ttf.descent * scale_factor)
            @line_gap         = Integer(@ttf.line_gap * scale_factor)
          end