Class: Mathtype5::RecordChar
- Inherits:
-
BinData::Record
- Object
- BinData::Record
- Mathtype5::RecordChar
- 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
Instance Method Details
permalink #mt_code_value ⇒ Object
[View source]
67 68 69 |
# File 'lib/records5/char.rb', line 67 def mt_code_value sprintf("0x%04X", _mt_code_value) end |
permalink #typeface ⇒ Object
[View source]
71 72 73 |
# File 'lib/records5/char.rb', line 71 def typeface _typeface + 128 end |
permalink #variation ⇒ Object
[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 |