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

Method getBaseline

src/render.cpp:41–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41float TeXRender::getBaseline() const {
42 return ((_box->_height * _textSize + 0.99f + _insets.top) /
43 ((_box->_height + _box->_depth) * _textSize + 0.99f + _insets.top + _insets.bottom));
44}
45
46void TeXRender::setTextSize(float textSize) {
47 _textSize = textSize;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected