| 178 | /************************************* TeXEnvironment implementation ******************************/ |
| 179 | |
| 180 | TeXEnvironment::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 | |
| 188 | float TeXEnvironment::getInterline() const { |
| 189 | return _interline * SpaceAtom::getFactor(_interlineUnit, *this); |