summaryrefslogtreecommitdiff
path: root/vcl/source/glyphs
diff options
context:
space:
mode:
authorHerbert Duerr <hdu@openoffice.org>2002-08-22 15:44:29 +0000
committerHerbert Duerr <hdu@openoffice.org>2002-08-22 15:44:29 +0000
commit88838b451db6765863e82e8f95fa91c5a44c20e2 (patch)
treeaf21de2e6b2000610b4f9a70492eaeff69ce914a /vcl/source/glyphs
parentd0ba6cb4d7be00b4af5d5d158fa64f0043cdd8fe (diff)
#100194# enable Bidi symbol swapping
Diffstat (limited to 'vcl/source/glyphs')
-rwxr-xr-xvcl/source/glyphs/gcach_layout.cxx15
1 files changed, 10 insertions, 5 deletions
diff --git a/vcl/source/glyphs/gcach_layout.cxx b/vcl/source/glyphs/gcach_layout.cxx
index bade674b2d9b..6de4b060be6c 100755
--- a/vcl/source/glyphs/gcach_layout.cxx
+++ b/vcl/source/glyphs/gcach_layout.cxx
@@ -2,8 +2,8 @@
*
* $RCSfile: gcach_layout.cxx,v $
*
- * $Revision: 1.12 $
- * last change: $Author: hdu $ $Date: 2002-08-01 13:31:46 $
+ * $Revision: 1.13 $
+ * last change: $Author: hdu $ $Date: 2002-08-22 16:44:29 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -325,6 +325,8 @@ void IcuFontFromServerFont::mapCharsToGlyphs( const LEUnicode pChars[],
le_int32 nOffset, le_int32 nCount, le_bool bReverse,
const LECharMapper* pMapper, LEGlyphID pGlyphs[] ) const
{
+ if( !bReverse )
+ pMapper = NULL;
for( int i = 0; i < nCount; ++i )
pGlyphs[i] = mapCharToGlyph( pChars[nOffset+i], pMapper );
@@ -339,10 +341,13 @@ void IcuFontFromServerFont::mapCharsToGlyphs( const LEUnicode pChars[],
// -----------------------------------------------------------------------
-LEGlyphID IcuFontFromServerFont::mapCharToGlyph( LEUnicode32 ch,
- const LECharMapper* /*TODO: mapper*/ ) const
+LEGlyphID IcuFontFromServerFont::mapCharToGlyph( LEUnicode32 c1,
+ const LECharMapper* pMapper ) const
{
- LEGlyphID nGlyphIndex = mpServerFont->GetRawGlyphIndex( ch );
+ LEUnicode32 c2 = c1;
+ if( pMapper )
+ c2 = pMapper->mapChar( c1 );
+ LEGlyphID nGlyphIndex = mpServerFont->GetRawGlyphIndex( c2 );
return nGlyphIndex;
}