| 41 | } |
| 42 | |
| 43 | void DefaultTeXFontParser::parse_kern( |
| 44 | const XMLElement* e, wchar_t c, _out_ FontInfo& f) throw(ex_xml_parse) { |
| 45 | // get required integer attributes |
| 46 | int code = getIntAndCheck("code", e); |
| 47 | // get required float attributes |
| 48 | float kern = getFloatAndCheck("val", e); |
| 49 | // parsing OK, add kern info |
| 50 | f.addKern(c, (wchar_t)code, kern); |
| 51 | } |
| 52 | |
| 53 | void DefaultTeXFontParser::parse_lig( |
| 54 | const XMLElement* e, wchar_t c, _out_ FontInfo& f) throw(ex_xml_parse) { |