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

Method TeXEnvironment

src/core/core.cpp:180–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178/************************************* TeXEnvironment implementation ******************************/
179
180TeXEnvironment::TeXEnvironment(int style, const sptr<TeXFont>& tf, int wu, float tw) {
181 init();
182 _style = style;
183 _tf = tf;
184 setInterline(TeXConstants::UNIT_EX, 1.f);
185 _textWidth = tw * SpaceAtom::getFactor(wu, *this);
186}
187
188float TeXEnvironment::getInterline() const {
189 return _interline * SpaceAtom::getFactor(_interlineUnit, *this);

Callers

nothing calls this directly

Calls 2

getFactorFunction · 0.85
initFunction · 0.50

Tested by

no test coverage detected