| 10 | float TeXRender::_magFactor = 0; |
| 11 | |
| 12 | TeXRender::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 | |
| 23 | float TeXRender::getTextSize() const { |
| 24 | return _textSize; |
nothing calls this directly
no outgoing calls
no test coverage detected