mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2025-01-24 14:42:30 +08:00
JKQTMathText: made simulated blackboard-font nicer (thinner outline)
This commit is contained in:
parent
00c6e39391
commit
7f2dc5f645
@ -62,7 +62,7 @@ void JKQTMathTextTextBaseNode::drawString(QPainter &painter, const JKQTMathTextE
|
|||||||
void JKQTMathTextTextBaseNode::drawString(QPainter &painter, const JKQTMathTextEnvironment ¤tEv, const QFont &f, double x, double y, const QString &txt) const
|
void JKQTMathTextTextBaseNode::drawString(QPainter &painter, const JKQTMathTextEnvironment ¤tEv, 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user