summaryrefslogtreecommitdiff
path: root/filter/source/svg
diff options
context:
space:
mode:
Diffstat (limited to 'filter/source/svg')
-rw-r--r--filter/source/svg/svgfontexport.cxx2
-rw-r--r--filter/source/svg/svgwriter.cxx8
2 files changed, 5 insertions, 5 deletions
diff --git a/filter/source/svg/svgfontexport.cxx b/filter/source/svg/svgfontexport.cxx
index ab730d3d2774..249e222a0762 100644
--- a/filter/source/svg/svgfontexport.cxx
+++ b/filter/source/svg/svgfontexport.cxx
@@ -189,7 +189,7 @@ void SVGFontExport::implEmbedFont( const vcl::Font& rFont )
vcl::Font aFont( rFont );
aFont.SetFontSize( Size( 0, nFontEM ) );
- aFont.SetAlignment( ALIGN_BASELINE );
+ aFont.SetAlignment( TextAlign::Baseline );
pVDev->SetMapMode(MapMode(MapUnit::Map100thMM));
pVDev->SetFont( aFont );
diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx
index fbf3561352c3..eefbbc61859a 100644
--- a/filter/source/svg/svgwriter.cxx
+++ b/filter/source/svg/svgwriter.cxx
@@ -1648,9 +1648,9 @@ void SVGTextWriter::implWriteTextPortion( const Point& rPos,
const FontMetric aMetric( mpVDev->GetFontMetric() );
const vcl::Font& rFont = mpVDev->GetFont();
- if( rFont.GetAlignment() == ALIGN_TOP )
+ if( rFont.GetAlignment() == TextAlign::Top )
aBaseLinePos.AdjustY(aMetric.GetAscent() );
- else if( rFont.GetAlignment() == ALIGN_BOTTOM )
+ else if( rFont.GetAlignment() == TextAlign::Bottom )
aBaseLinePos.AdjustY( -(aMetric.GetDescent()) );
implMap( rPos, aPos );
@@ -2646,9 +2646,9 @@ void SVGActionWriter::ImplWriteText( const Point& rPos, const OUString& rText,
const FontMetric aMetric( mpVDev->GetFontMetric() );
const vcl::Font& rFont = mpVDev->GetFont();
- if( rFont.GetAlignment() == ALIGN_TOP )
+ if( rFont.GetAlignment() == TextAlign::Top )
aBaseLinePos.AdjustY(aMetric.GetAscent() );
- else if( rFont.GetAlignment() == ALIGN_BOTTOM )
+ else if( rFont.GetAlignment() == TextAlign::Bottom )
aBaseLinePos.AdjustY( -(aMetric.GetDescent()) );
ImplMap( rPos, aPos );