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

Method parse_kern

src/res/parser/font_parser.cpp:43–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void 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
53void DefaultTeXFontParser::parse_lig(
54 const XMLElement* e, wchar_t c, _out_ FontInfo& f) throw(ex_xml_parse) {

Callers

nothing calls this directly

Calls 1

addKernMethod · 0.80

Tested by

no test coverage detected