incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h..@apache.org
Subject svn commit: r1173604 - /incubator/ooo/trunk/main/vcl/source/glyphs/gcach_layout.cxx
Date Wed, 21 Sep 2011 12:42:28 GMT
Author: hdu
Date: Wed Sep 21 12:42:28 2011
New Revision: 1173604

URL: http://svn.apache.org/viewvc?rev=1173604&view=rev
Log:
#i89286# fix kerning on UNX for RTL-scripts

Modified:
    incubator/ooo/trunk/main/vcl/source/glyphs/gcach_layout.cxx

Modified: incubator/ooo/trunk/main/vcl/source/glyphs/gcach_layout.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/vcl/source/glyphs/gcach_layout.cxx?rev=1173604&r1=1173603&r2=1173604&view=diff
==============================================================================
--- incubator/ooo/trunk/main/vcl/source/glyphs/gcach_layout.cxx (original)
+++ incubator/ooo/trunk/main/vcl/source/glyphs/gcach_layout.cxx Wed Sep 21 12:42:28 2011
@@ -544,6 +544,7 @@ bool IcuLayoutEngine::operator()( Server
             aNewPos = Point( (int)(pPos->fX+0.5), (int)(pPos->fY+0.5) );
             const GlyphMetric& rGM = rFont.GetGlyphMetric( nGlyphIndex );
             int nGlyphWidth = rGM.GetCharWidth();
+            int nNewWidth = pPos[1].fX - pPos[0].fX;
             if( nGlyphWidth <= 0 )
                 bDiacritic |= true;
             // #i99367# force all diacritics to zero width
@@ -603,7 +604,8 @@ bool IcuLayoutEngine::operator()( Server
                 nGlyphFlags |= GlyphItem::IS_DIACRITIC;
 
             // add resulting glyph item to layout
-            const GlyphItem aGI( nCharPos, nGlyphIndex, aNewPos, nGlyphFlags, nGlyphWidth
);
+            GlyphItem aGI( nCharPos, nGlyphIndex, aNewPos, nGlyphFlags, nGlyphWidth );
+            aGI.mnNewWidth = nNewWidth;
             rLayout.AppendGlyph( aGI );
             ++nFilteredRunGlyphCount;
             nLastCharPos = nCharPos;



Mime
View raw message