Class: TTFunk::Table::OS2

Inherits:
TTFunk::Table show all
Defined in:
lib/ttfunk/table/os2.rb

Instance Attribute Summary collapse

Attributes inherited from TTFunk::Table

#file, #length, #offset

Instance Method Summary collapse

Methods inherited from TTFunk::Table

#exists?, #initialize, #raw

Constructor Details

This class inherits a constructor from TTFunk::Table

Instance Attribute Details

#ascentObject (readonly)

Returns the value of attribute ascent.



30
31
32
# File 'lib/ttfunk/table/os2.rb', line 30

def ascent
  @ascent
end

#ave_char_widthObject (readonly)

Returns the value of attribute ave_char_width.



8
9
10
# File 'lib/ttfunk/table/os2.rb', line 8

def ave_char_width
  @ave_char_width
end

#break_charObject (readonly)

Returns the value of attribute break_char.



40
41
42
# File 'lib/ttfunk/table/os2.rb', line 40

def break_char
  @break_char
end

#cap_heightObject (readonly)

Returns the value of attribute cap_height.



38
39
40
# File 'lib/ttfunk/table/os2.rb', line 38

def cap_height
  @cap_height
end

#char_rangeObject (readonly)

Returns the value of attribute char_range.



24
25
26
# File 'lib/ttfunk/table/os2.rb', line 24

def char_range
  @char_range
end

#code_page_rangeObject (readonly)

Returns the value of attribute code_page_range.



35
36
37
# File 'lib/ttfunk/table/os2.rb', line 35

def code_page_range
  @code_page_range
end

#default_charObject (readonly)

Returns the value of attribute default_char.



39
40
41
# File 'lib/ttfunk/table/os2.rb', line 39

def default_char
  @default_char
end

#descentObject (readonly)

Returns the value of attribute descent.



31
32
33
# File 'lib/ttfunk/table/os2.rb', line 31

def descent
  @descent
end

#family_classObject (readonly)

Returns the value of attribute family_class.



22
23
24
# File 'lib/ttfunk/table/os2.rb', line 22

def family_class
  @family_class
end

#first_char_indexObject (readonly)

Returns the value of attribute first_char_index.



27
28
29
# File 'lib/ttfunk/table/os2.rb', line 27

def first_char_index
  @first_char_index
end

#last_char_indexObject (readonly)

Returns the value of attribute last_char_index.



28
29
30
# File 'lib/ttfunk/table/os2.rb', line 28

def last_char_index
  @last_char_index
end

#line_gapObject (readonly)

Returns the value of attribute line_gap.



32
33
34
# File 'lib/ttfunk/table/os2.rb', line 32

def line_gap
  @line_gap
end

#max_contextObject (readonly)

Returns the value of attribute max_context.



41
42
43
# File 'lib/ttfunk/table/os2.rb', line 41

def max_context
  @max_context
end

#panoseObject (readonly)

Returns the value of attribute panose.



23
24
25
# File 'lib/ttfunk/table/os2.rb', line 23

def panose
  @panose
end

#selectionObject (readonly)

Returns the value of attribute selection.



26
27
28
# File 'lib/ttfunk/table/os2.rb', line 26

def selection
  @selection
end

#typeObject (readonly)

Returns the value of attribute type.



11
12
13
# File 'lib/ttfunk/table/os2.rb', line 11

def type
  @type
end

#vendor_idObject (readonly)

Returns the value of attribute vendor_id.



25
26
27
# File 'lib/ttfunk/table/os2.rb', line 25

def vendor_id
  @vendor_id
end

#versionObject (readonly)

Returns the value of attribute version.



6
7
8
# File 'lib/ttfunk/table/os2.rb', line 6

def version
  @version
end

#weight_classObject (readonly)

Returns the value of attribute weight_class.



9
10
11
# File 'lib/ttfunk/table/os2.rb', line 9

def weight_class
  @weight_class
end

#width_classObject (readonly)

Returns the value of attribute width_class.



10
11
12
# File 'lib/ttfunk/table/os2.rb', line 10

def width_class
  @width_class
end

#win_ascentObject (readonly)

Returns the value of attribute win_ascent.



33
34
35
# File 'lib/ttfunk/table/os2.rb', line 33

def win_ascent
  @win_ascent
end

#win_descentObject (readonly)

Returns the value of attribute win_descent.



34
35
36
# File 'lib/ttfunk/table/os2.rb', line 34

def win_descent
  @win_descent
end

#x_heightObject (readonly)

Returns the value of attribute x_height.



37
38
39
# File 'lib/ttfunk/table/os2.rb', line 37

def x_height
  @x_height
end

#y_strikeout_positionObject (readonly)

Returns the value of attribute y_strikeout_position.



21
22
23
# File 'lib/ttfunk/table/os2.rb', line 21

def y_strikeout_position
  @y_strikeout_position
end

#y_strikeout_sizeObject (readonly)

Returns the value of attribute y_strikeout_size.



20
21
22
# File 'lib/ttfunk/table/os2.rb', line 20

def y_strikeout_size
  @y_strikeout_size
end

#y_subscript_x_offsetObject (readonly)

Returns the value of attribute y_subscript_x_offset.



14
15
16
# File 'lib/ttfunk/table/os2.rb', line 14

def y_subscript_x_offset
  @y_subscript_x_offset
end

#y_subscript_x_sizeObject (readonly)

Returns the value of attribute y_subscript_x_size.



12
13
14
# File 'lib/ttfunk/table/os2.rb', line 12

def y_subscript_x_size
  @y_subscript_x_size
end

#y_subscript_y_offsetObject (readonly)

Returns the value of attribute y_subscript_y_offset.



15
16
17
# File 'lib/ttfunk/table/os2.rb', line 15

def y_subscript_y_offset
  @y_subscript_y_offset
end

#y_subscript_y_sizeObject (readonly)

Returns the value of attribute y_subscript_y_size.



13
14
15
# File 'lib/ttfunk/table/os2.rb', line 13

def y_subscript_y_size
  @y_subscript_y_size
end

#y_superscript_x_offsetObject (readonly)

Returns the value of attribute y_superscript_x_offset.



18
19
20
# File 'lib/ttfunk/table/os2.rb', line 18

def y_superscript_x_offset
  @y_superscript_x_offset
end

#y_superscript_x_sizeObject (readonly)

Returns the value of attribute y_superscript_x_size.



16
17
18
# File 'lib/ttfunk/table/os2.rb', line 16

def y_superscript_x_size
  @y_superscript_x_size
end

#y_superscript_y_offsetObject (readonly)

Returns the value of attribute y_superscript_y_offset.



19
20
21
# File 'lib/ttfunk/table/os2.rb', line 19

def y_superscript_y_offset
  @y_superscript_y_offset
end

#y_superscript_y_sizeObject (readonly)

Returns the value of attribute y_superscript_y_size.



17
18
19
# File 'lib/ttfunk/table/os2.rb', line 17

def y_superscript_y_size
  @y_superscript_y_size
end

Instance Method Details

#tagObject



43
44
45
# File 'lib/ttfunk/table/os2.rb', line 43

def tag
  "OS/2"
end