JKQTMathText: made simulated blackboard-font nicer (thinner outline)

This commit is contained in:
jkriege2 2022-08-07 17:38:57 +02:00
parent 00c6e39391
commit 7f2dc5f645

View File

@ -62,7 +62,7 @@ void JKQTMathTextTextBaseNode::drawString(QPainter &painter, const JKQTMathTextE
void JKQTMathTextTextBaseNode::drawString(QPainter &painter, const JKQTMathTextEnvironment &currentEv, const QFont &f, double x, double y, const QString &txt) const void JKQTMathTextTextBaseNode::drawString(QPainter &painter, const JKQTMathTextEnvironment &currentEv, const QFont &f, double x, double y, const QString &txt) const
{ {
const QFontMetricsF fm(f, painter.device()); const QFontMetricsF fm(f, painter.device());
const QPen p(currentEv.color, fm.lineWidth(), Qt::SolidLine); const QPen p(currentEv.color, fm.lineWidth()/2.0, Qt::SolidLine);
painter.setPen(p); painter.setPen(p);
if (currentEv.font==MTEblackboard && parentMathText->isFontBlackboardSimulated()) { if (currentEv.font==MTEblackboard && parentMathText->isFontBlackboardSimulated()) {
QPainterPath path; QPainterPath path;