Class: Prawn::SVG::TTF

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

Constant Summary collapse

SFNT_VERSION_STRINGS =
["\x00\x01\x00\x00", 'true', 'typ1'].freeze
LANGUAGE_IDS =

English, US English

[0, 0x409].freeze
UTF_16BE_PLATFORM_IDS =

Unicode, Microsoft

[0, 3].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ TTF

Returns a new instance of TTF.



8
9
10
# File 'lib/prawn/svg/ttf.rb', line 8

def initialize(filename)
  load_data_from_file(filename)
end

Instance Attribute Details

#familyObject (readonly)

Returns the value of attribute family.



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

def family
  @family
end

#subfamilyObject (readonly)

Returns the value of attribute subfamily.



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

def subfamily
  @subfamily
end