diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/coretext/salcoretextlayout.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vcl/coretext/salcoretextlayout.cxx b/vcl/coretext/salcoretextlayout.cxx index 3263e0d3ebd9..64e0d89f450a 100644 --- a/vcl/coretext/salcoretextlayout.cxx +++ b/vcl/coretext/salcoretextlayout.cxx @@ -501,6 +501,17 @@ bool CoreTextLayout::InitGIA( ImplLayoutArgs& rArgs ) const return false; } + if ( rArgs.mpDXArray ) { + CTLineRef justifiedLine = CTLineCreateJustifiedLine( mpLine, 1.0, rArgs.mpDXArray[mnCharCount-1] ); + if ( !justifiedLine ) { + SAL_INFO( "vcl.coretext.layout", "InitGIA(): CTLineCreateJustifiedLine() failed" ); + } else { + SAL_INFO( "vcl.coretext.layout", "InitGIA(): Created justified line" ); + CFRelease( mpLine ); + mpLine = justifiedLine; + } + } + mnGlyphCount = CTLineGetGlyphCount( mpLine ); SAL_INFO( "vcl.coretext.layout", "InitGIA(): CTLineGetGlyphCount() returned " << mnGlyphCount ); |