| 13 | TeXRenderBuilder* LaTeX::_builder = nullptr; |
| 14 | |
| 15 | void LaTeX::init(const string& res_root_path) { |
| 16 | RES_BASE = res_root_path; |
| 17 | if (_formula != nullptr) return; |
| 18 | |
| 19 | NewCommandMacro::_init_(); |
| 20 | DefaultTeXFont::_init_(); |
| 21 | SymbolAtom::_init_(); |
| 22 | Glue::_init_(); |
| 23 | TeXFormula::_init_(); |
| 24 | TextRenderingBox::_init_(); |
| 25 | |
| 26 | _formula = new TeXFormula(); |
| 27 | _builder = new TeXRenderBuilder(); |
| 28 | } |
| 29 | |
| 30 | void LaTeX::release() { |
| 31 | Glue::_free_(); |
nothing calls this directly
no outgoing calls
no test coverage detected