MCPcopy Create free account
hub / github.com/NanoMichael/MicroTeX / parse_extension

Method parse_extension

src/res/parser/font_parser.cpp:30–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28/**************************************** child parsers *******************************************/
29
30void DefaultTeXFontParser::parse_extension(
31 const XMLElement* e, wchar_t c, _out_ FontInfo& f) throw(ex_xml_parse) {
32 int* extensions = new int[4];
33 // get required integer attributes
34 extensions[DefaultTeXFont::REP] = getIntAndCheck("rep", e);
35 // get optional integer attributes
36 extensions[DefaultTeXFont::TOP] = getOptionalInt("top", e, DefaultTeXFont::NONE);
37 extensions[DefaultTeXFont::MID] = getOptionalInt("mid", e, DefaultTeXFont::NONE);
38 extensions[DefaultTeXFont::BOT] = getOptionalInt("bot", e, DefaultTeXFont::NONE);
39 // parsing OK, add extension info
40 f.setExtension(c, extensions);
41}
42
43void DefaultTeXFontParser::parse_kern(
44 const XMLElement* e, wchar_t c, _out_ FontInfo& f) throw(ex_xml_parse) {

Callers

nothing calls this directly

Calls 1

setExtensionMethod · 0.80

Tested by

no test coverage detected