#include "math_.h"
#include <limits>
#include <vector>
#include "layout.h"
#include "maxp.h"
namespace {
const unsigned kMathHeaderSize = …;
const unsigned kMathGlyphInfoHeaderSize = …;
const unsigned kMathValueRecordSize = …;
const unsigned kGlyphPartRecordSize = …;
}
namespace ots {
bool OpenTypeMATH::ParseMathValueRecord(ots::Buffer* subtable,
const uint8_t *data,
const size_t length) { … }
bool OpenTypeMATH::ParseMathConstantsTable(const uint8_t *data,
size_t length) { … }
bool OpenTypeMATH::ParseMathValueRecordSequenceForGlyphs(ots::Buffer* subtable,
const uint8_t *data,
const size_t length,
const uint16_t num_glyphs) { … }
bool OpenTypeMATH::ParseMathItalicsCorrectionInfoTable(const uint8_t *data,
size_t length,
const uint16_t num_glyphs) { … }
bool OpenTypeMATH::ParseMathTopAccentAttachmentTable(const uint8_t *data,
size_t length,
const uint16_t num_glyphs) { … }
bool OpenTypeMATH::ParseMathKernTable(const uint8_t *data, size_t length) { … }
bool OpenTypeMATH::ParseMathKernInfoTable(const uint8_t *data,
size_t length,
const uint16_t num_glyphs) { … }
bool OpenTypeMATH::ParseMathGlyphInfoTable(const uint8_t *data,
size_t length,
const uint16_t num_glyphs) { … }
bool OpenTypeMATH::ParseGlyphAssemblyTable(const uint8_t *data,
size_t length,
const uint16_t num_glyphs) { … }
bool OpenTypeMATH::ParseMathGlyphConstructionTable(const uint8_t *data,
size_t length,
const uint16_t num_glyphs) { … }
bool OpenTypeMATH::ParseMathGlyphConstructionSequence(ots::Buffer* subtable,
const uint8_t *data,
size_t length,
const uint16_t num_glyphs,
uint16_t offset_coverage,
uint16_t glyph_count,
const unsigned sequence_end) { … }
bool OpenTypeMATH::ParseMathVariantsTable(const uint8_t *data,
size_t length,
const uint16_t num_glyphs) { … }
bool OpenTypeMATH::Parse(const uint8_t *data, size_t length) { … }
bool OpenTypeMATH::Serialize(OTSStream *out) { … }
bool OpenTypeMATH::ShouldSerialize() { … }
}