Class: Prawn::SVG::TTF
- Inherits:
-
Object
- Object
- Prawn::SVG::TTF
- 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
-
#family ⇒ Object
readonly
Returns the value of attribute family.
-
#subfamily ⇒ Object
readonly
Returns the value of attribute subfamily.
Instance Method Summary collapse
-
#initialize(filename) ⇒ TTF
constructor
A new instance of TTF.
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
#family ⇒ Object (readonly)
Returns the value of attribute family.
6 7 8 |
# File 'lib/prawn/svg/ttf.rb', line 6 def family @family end |
#subfamily ⇒ Object (readonly)
Returns the value of attribute subfamily.
6 7 8 |
# File 'lib/prawn/svg/ttf.rb', line 6 def subfamily @subfamily end |