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

Method TeXRender

src/render.cpp:12–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10float TeXRender::_magFactor = 0;
11
12TeXRender::TeXRender(const sptr<Box> box, float textSize, bool trueValues) {
13 _box = box;
14 if (_defaultSize != -1) _textSize = _defaultSize;
15 if (_magFactor != 0) {
16 _textSize = textSize * abs(_magFactor);
17 } else {
18 _textSize = textSize;
19 }
20 if (!trueValues) _insets += (int)(0.18f * textSize);
21}
22
23float TeXRender::getTextSize() const {
24 return _textSize;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected