Kaydet (Commit) cef3f3aa authored tarafından Khaled Hosny's avatar Khaled Hosny

Fix improper glyph positioning with old fonts

Apparently this second mnXOffset is not needed, further more it breaks
some old Microsoft fonts.

Change-Id: Ice033cb6bcb3f1bdfeef31a8406a7a2e5487da97
üst d443bfea
...@@ -1098,7 +1098,7 @@ void GenericSalLayout::ApplyDXArray( ImplLayoutArgs& rArgs ) ...@@ -1098,7 +1098,7 @@ void GenericSalLayout::ApplyDXArray( ImplLayoutArgs& rArgs )
if( m_GlyphItems[j].IsClusterStart() ) if( m_GlyphItems[j].IsClusterStart() )
break; break;
if( !m_GlyphItems[j].IsDiacritic() ) // #i99367# ignore diacritics if( !m_GlyphItems[j].IsDiacritic() ) // #i99367# ignore diacritics
nOldClusterWidth += m_GlyphItems[j].mnNewWidth - m_GlyphItems[j].mnXOffset; nOldClusterWidth += m_GlyphItems[j].mnNewWidth;
nNewClusterWidth += pNewGlyphWidths[j]; nNewClusterWidth += pNewGlyphWidths[j];
} }
const int nDiff = nNewClusterWidth - nOldClusterWidth; const int nDiff = nNewClusterWidth - nOldClusterWidth;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment