Class: Prawn::SVG::TTC

Inherits:
Object
  • Object
show all
Defined in:
lib/prawn/svg/ttc.rb

Constant Summary collapse

TTC_TAG =
'ttcf'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ TTC

Returns a new instance of TTC.



6
7
8
9
# File 'lib/prawn/svg/ttc.rb', line 6

def initialize(filename)
  @fonts = []
  load_data_from_file(filename)
end

Instance Attribute Details

#fontsObject (readonly)

Returns the value of attribute fonts.



4
5
6
# File 'lib/prawn/svg/ttc.rb', line 4

def fonts
  @fonts
end