summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-06-20 13:15:25 +0200
committerDavid Tardon <dtardon@redhat.com>2013-06-20 13:18:26 +0200
commit5f00be141d86e3eadddd554cd9d18ebe47d4d59b (patch)
treec431065364ad374736f0cc95783164a01b44db9b /vcl
parent647ad63f9f598a92bbd62aaa76f703a50bd63bc3 (diff)
Revert "fdo#65132 compute font height correctly"
Commit 22d23d52b0f65636df3a1cb8fada9bf7de77eb78 is the real fix. This reverts commit 3a6513047409b8e8f6295152b33385ad8ef93681. Change-Id: I36ac1f64000c3a805289141c2c6dca0de78454d3
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/outdev3.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx
index ec55ff124dce..8338d9f8181b 100644
--- a/vcl/source/gdi/outdev3.cxx
+++ b/vcl/source/gdi/outdev3.cxx
@@ -7082,7 +7082,7 @@ FontMetric OutputDevice::GetFontMetric() const
// set aMetric with info from font
aMetric.SetName( maFont.GetName() );
aMetric.SetStyleName( pMetric->GetStyleName() );
- aMetric.SetSize( PixelToLogic( Size( pMetric->mnWidth, pMetric->mnAscent+pMetric->mnDescent ) ) );
+ aMetric.SetSize( PixelToLogic( Size( pMetric->mnWidth, pMetric->mnAscent+pMetric->mnDescent-pMetric->mnIntLeading ) ) );
aMetric.SetCharSet( pMetric->IsSymbolFont() ? RTL_TEXTENCODING_SYMBOL : RTL_TEXTENCODING_UNICODE );
aMetric.SetFamily( pMetric->GetFamilyType() );
aMetric.SetPitch( pMetric->GetPitch() );