font rendering antialiased
This commit is contained in:
1 parent
79a6da2fc6
commit
ab7784dcde
1 file changed
+3
@@ -234,6 +234,9 @@ void Canvas::applyPenBrush()
|
|||||||
{
|
{
|
||||||
if (!m_painter)
|
if (!m_painter)
|
||||||
return;
|
return;
|
||||||
|
m_painter->setRenderHint(QPainter::Antialiasing, true);
|
||||||
|
m_painter->setRenderHint(QPainter::TextAntialiasing, true);
|
||||||
|
m_painter->setRenderHint(QPainter::SmoothPixmapTransform, true);
|
||||||
m_painter->setPen(m_pen.toQPen());
|
m_painter->setPen(m_pen.toQPen());
|
||||||
m_painter->setBrush(m_brush.toQBrush());
|
m_painter->setBrush(m_brush.toQBrush());
|
||||||
m_painter->setFont(m_font.toQFont());
|
m_painter->setFont(m_font.toQFont());
|
||||||
|
|||||||
Reference in new issue
Block a user