| 28 | /**************************************** child parsers *******************************************/ |
| 29 | |
| 30 | void 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 | |
| 43 | void DefaultTeXFontParser::parse_kern( |
| 44 | const XMLElement* e, wchar_t c, _out_ FontInfo& f) throw(ex_xml_parse) { |
nothing calls this directly
no test coverage detected