Class: Mathtype5::RecordChar

Inherits:
BinData::Record
  • Object
show all
Includes:
Snapshot
Defined in:
lib/records5/char.rb

Constant Summary collapse

EXPOSED_IN_SNAPSHOT =
%i(nudge typeface mt_code_value options font_position
variation embellishment_list)

Instance Method Summary collapse

Methods included from Snapshot

#snapshot

Instance Method Details

#mt_code_valueObject

[View source]

67
68
69
# File 'lib/records5/char.rb', line 67

def mt_code_value
  sprintf("0x%04X", _mt_code_value)
end

#typefaceObject

[View source]

71
72
73
# File 'lib/records5/char.rb', line 71

def typeface
  _typeface + 128
end

#variationObject

[View source]

75
76
77
78
79
80
81
82
# File 'lib/records5/char.rb', line 75

def variation
  case typeface
  when 1, 9, 10
    "textmode"
  else
    "mathmode"
  end
end