summaryrefslogtreecommitdiff
path: root/goodies
diff options
context:
space:
mode:
authorSven Jacobi <sj@openoffice.org>2002-05-31 07:50:36 +0000
committerSven Jacobi <sj@openoffice.org>2002-05-31 07:50:36 +0000
commit9bbe083bc740df42b22e09a9e0948a7f9e73f35a (patch)
treeb8704bf11d29430088b5cd6c3e9589d0b91a4060 /goodies
parent4cfa92e6a729f531ed2788396f2f14dc6874f2aa (diff)
#97492# now using GetTextOutline instead of GetGlyphOutline, (GetTextOutline is always creating baseline oriented outlines)
Diffstat (limited to 'goodies')
-rw-r--r--goodies/source/filter.vcl/eps/eps.cxx22
1 files changed, 4 insertions, 18 deletions
diff --git a/goodies/source/filter.vcl/eps/eps.cxx b/goodies/source/filter.vcl/eps/eps.cxx
index 1674a6750a38..f811dae61904 100644
--- a/goodies/source/filter.vcl/eps/eps.cxx
+++ b/goodies/source/filter.vcl/eps/eps.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: eps.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: sj $ $Date: 2002-03-12 15:22:59 $
+ * last change: $Author: sj $ $Date: 2002-05-31 08:50:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1894,28 +1894,14 @@ void PSWriter::ImplText( const String& rUniString, const Point& rPos, const INT3
Point aPos( rPos );
if ( i > 0 )
aPos.X() += pDX[ i - 1 ];
- Size aSize( aVirDev.GetTextWidth( nChar ), aNormSize.Height() );
- switch( maFont.GetAlign() )
- {
- case( ALIGN_TOP ) :
- break;
-
- case( ALIGN_BOTTOM ) :
- aPos.Y() -= aMetric.GetLineHeight();
- break;
-
- default:
- case ( ALIGN_BASELINE ) :
- aPos.Y() -= aMetric.GetAscent();
- break;
- }
if ( nRotation )
{
aPolyDummy.SetPoint( aPos, 0 );
aPolyDummy.Rotate( rPos, nRotation );
aPos = aPolyDummy.GetPoint( 0 );
}
- if ( aVirDev.GetGlyphOutline( nChar, aPolyPoly, sal_True ) )
+ String aString( nChar );
+ if ( aVirDev.GetTextOutline( aPolyPoly, aString ) )
{
ImplWriteLine( "pum" );
// always adjust text position to match baseline alignment