Kaydet (Commit) f89d70de authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS vcl27 (1.30.48); FILE MERGED

2004/09/09 12:33:53 hdu 1.30.48.1: #116489# only apply asian kerning on default-formatted text
üst 7d837f1c
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* *
* $RCSfile: gcach_layout.cxx,v $ * $RCSfile: gcach_layout.cxx,v $
* *
* $Revision: 1.30 $ * $Revision: 1.31 $
* last change: $Author: rt $ $Date: 2004-07-13 16:31:47 $ * last change: $Author: hr $ $Date: 2004-10-13 08:56:01 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -123,12 +123,13 @@ void ServerFontLayout::AdjustLayout( ImplLayoutArgs& rArgs ) ...@@ -123,12 +123,13 @@ void ServerFontLayout::AdjustLayout( ImplLayoutArgs& rArgs )
{ {
GenericSalLayout::AdjustLayout( rArgs ); GenericSalLayout::AdjustLayout( rArgs );
// asian kerning // apply asian kerning if the glyphs are not already formatted
if( (rArgs.mnFlags & SAL_LAYOUT_KERNING_ASIAN) if( (rArgs.mnFlags & SAL_LAYOUT_KERNING_ASIAN)
&& !(rArgs.mnFlags & SAL_LAYOUT_VERTICAL) ) && !(rArgs.mnFlags & SAL_LAYOUT_VERTICAL) )
ApplyAsianKerning( rArgs.mpStr, rArgs.mnLength ); if( (rArgs.mpDXArray != NULL) || (rArgs.mnLayoutWidth != 0) )
ApplyAsianKerning( rArgs.mpStr, rArgs.mnLength );
// kashida justification // insert kashidas where requested by the formatting array
if( (rArgs.mnFlags & SAL_LAYOUT_KASHIDA_JUSTIFICATON) && rArgs.mpDXArray ) if( (rArgs.mnFlags & SAL_LAYOUT_KASHIDA_JUSTIFICATON) && rArgs.mpDXArray )
{ {
int nKashidaIndex = mrServerFont.GetGlyphIndex( 0x0640 ); int nKashidaIndex = mrServerFont.GetGlyphIndex( 0x0640 );
......
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