From 10d8275962ed3eb70ae5ac52b38b8d1ece3964f0 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 9 Apr 2013 16:12:17 +0200 Subject: [PATCH] Fixed line style used for displaying texts. --- common/gal/stroke_font.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/gal/stroke_font.cpp b/common/gal/stroke_font.cpp index a82021dc30..8c22dcdda4 100644 --- a/common/gal/stroke_font.cpp +++ b/common/gal/stroke_font.cpp @@ -213,6 +213,9 @@ void STROKE_FONT::Draw( std::string aText, VECTOR2D aPosition, double aRotationA double scaleY = m_scaleFactor * m_glyphSize.y; double scaleX = m_scaleFactor * glyphSizeX; + m_gal->SetLineCap( LINE_CAP_ROUND ); + m_gal->SetLineJoin( LINE_JOIN_ROUND ); + if( m_bold ) { m_gal->SetLineWidth( m_gal->GetLineWidth() * 1.3 );