Characters in formula rendering used to look like super-bold, because
they're rendered into a vector path and have a pen set. This patch
simply sets the pen to Qt::NoPen before painting text.
Details
Details
- Reviewers
kossebau - Group Reviewers
Calligra: 3.0 - Commits
- R8:d96628860899: Don't outline characters in formula rendering.
Diff Detail
Diff Detail
- Repository
- R8 Calligra
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Good find and improvement, thanks. Seems this is a Qt4->Qt5 regression, as QPen(QColor) changed default width from 0 to 1 pixels. Will have a look at other places once this is in.
Please push :)
plugins/formulashape/elements/TokenElement.cpp | ||
---|---|---|
64 | Please no spaces between brackets and value (code style of Calligra code is incrementally adapted on each fix). |
Comment Actions
And this is less a regression by Qt4->Qt5, but indeed a mistake in the code since it was written, now I see better. There is no purpose to draw an outline here, agree to your analysis. The Qt5 change of default QPen values just made this more obvious :)