Module: Mathtype

Defined in:
lib/records/line.rb,
lib/mathtype.rb,
lib/records/end.rb,
lib/records/char.rb,
lib/records/mtef.rb,
lib/records/pile.rb,
lib/records/size.rb,
lib/records/tmpl.rb,
lib/records/color.rb,
lib/records/nudge.rb,
lib/records/ruler.rb,
lib/records/embell.rb,
lib/records/future.rb,
lib/records/matrix.rb,
lib/mathtype/version.rb,
lib/records/font_def.rb,
lib/records/snapshot.rb,
lib/records/color_def.rb,
lib/records/eqn_prefs.rb,
lib/records/typesizes.rb,
lib/records/encoding_def.rb,
lib/records/font_style_def.rb

Overview

FONT_STYLE_DEF record (8): Consists of: record type (8)

font_def_index

index of mtefFONT_DEF record (unsigned integer)

char_style

character style bits

This record associates a character style with a font. See Definition records.

Defined Under Namespace

Modules: Snapshot Classes: Converter, Entry, Equation, NamedRecord, Nudge, Payload, RecordChar, RecordColor, RecordColorDef, RecordEmbell, RecordEncodingDef, RecordEnd, RecordEqnPrefs, RecordFontDef, RecordFontStyleDef, RecordFull, RecordFuture, RecordLine, RecordMatrix, RecordPile, RecordRuler, RecordSize, RecordSub, RecordSub2, RecordSubsym, RecordSym, RecordTmpl

Constant Summary collapse

RECORD_NAMES =
{
  0 => "end",
  1 => "slot",
  2 => "char",
  3 => "tmpl",
  4 => "pile",
  5 => "matrix",
  6 => "embell",
  7 => "ruler",
  8 => "font_style_def",
  9 => "size",
  10 => "full",
  11 => "sub",
  12 => "sub2",
  13 => "sym",
  14 => "subsym",
  15 => "color",
  16 => "color_def",
  17 => "font_def",
  18 => "eqn_prefs",
  19 => "encoding_def",
  100 => "future"
}
OPTIONS =
{
  # value => symbol                     # description
  # Option flag values for all equation structure records:
  "mtefOPT_NUDGE" => 0x08,              # nudge values follow tag
  # Option flag values for CHAR records:
  "mtefOPT_CHAR_EMBELL" => 0x01,        # character is followed by an embellishment list
  "mtefOPT_CHAR_FUNC_START" => 0x02,    # character starts a function (sin, cos, etc.)
  "mtefOPT_CHAR_ENC_CHAR_8" => 0x04,    # character is written with an 8-bit encoded value
  "mtefOPT_CHAR_ENC_CHAR_16" => 0x10,   # character is written with an 16-bit encoded value
  "mtefOPT_CHAR_ENC_NO_MTCODE" => 0x20, # character is written without an 16-bit MTCode value
  # Option flag values for LINE records:
  "mtefOPT_LINE_NULL" => 0x01,          # line is a placeholder only (i.e. not displayed)
  "mtefOPT_LINE_LSPACE" => 0x04,        # line spacing value follows tag
  # Option flag values for LINE and PILE records:
  "mtefOPT_LP_RULER" => 0x02,           # RULER record follows LINE or PILE record
  # Option flag values for COLOR_DEF records:
  "mtefCOLOR_CMYK" => 0x01,             # color model is CMYK, else RGB
  "mtefCOLOR_SPOT" => 0x02,             # color is a spot color, else a process color
  "mtefCOLOR_NAME" => 0x04,             # color has a name, else no name
}
HALIGN =
{
  1 => "left",
  2 => "center",
  3 => "right",
  4 => "al", # relational
  5 => "dec" # decimal
}
VALIGN =
{
  0 => "top_baseline",
  1 => "center_baseline",
  2 => "bottom_baseline",
  3 => "center", # vertical centering
  4 => "axis" # math axis (center of +,-, brace points, etc.)
}
VERSION =
"0.0.8"