Fix overbar drawing for non-italic text
Overbar was always indented inward, regardless if text was italic or not.
This commit is contained in:
parent
f785d27498
commit
1f6f76beb9
|
@ -326,7 +326,9 @@ void STROKE_FONT::drawSingleLineText( const UTF8& aText )
|
||||||
|
|
||||||
if( !last_had_overbar )
|
if( !last_had_overbar )
|
||||||
{
|
{
|
||||||
|
if( m_gal->IsFontItalic() )
|
||||||
overbar_start_x += overbar_italic_comp;
|
overbar_start_x += overbar_italic_comp;
|
||||||
|
|
||||||
last_had_overbar = true;
|
last_had_overbar = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue