From db2243f6fff9f1666049b501f45f582c2837caf2 Mon Sep 17 00:00:00 2001 From: Andrzej Wolski <awolski.ki...@gmail.com> Date: Fri, 22 Jun 2018 12:51:53 +0200 Subject: [PATCH] Fix overbar drawing for non-italic text
Overbar was always indented inward, regardless if text was italic or not. --- common/gal/stroke_font.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/gal/stroke_font.cpp b/common/gal/stroke_font.cpp index a6958f39c..10cc9e2c1 100644 --- a/common/gal/stroke_font.cpp +++ b/common/gal/stroke_font.cpp @@ -326,7 +326,9 @@ void STROKE_FONT::drawSingleLineText( const UTF8& aText ) if( !last_had_overbar ) { - overbar_start_x += overbar_italic_comp; + if( m_gal->IsFontItalic() ) + overbar_start_x += overbar_italic_comp; + last_had_overbar = true; } -- 2.16.2
_______________________________________________ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp