Fix overbar drawing for non-italic text

Overbar was always indented inward, regardless if text was italic or not.
This commit is contained in:
Andrzej Wolski 2018-06-22 12:51:53 +02:00 committed by Wayne Stambaugh
parent f785d27498
commit 1f6f76beb9
1 changed files with 3 additions and 1 deletions

View File

@ -326,7 +326,9 @@ void STROKE_FONT::drawSingleLineText( const UTF8& aText )
if( !last_had_overbar ) if( !last_had_overbar )
{ {
overbar_start_x += overbar_italic_comp; if( m_gal->IsFontItalic() )
overbar_start_x += overbar_italic_comp;
last_had_overbar = true; last_had_overbar = true;
} }