Kaydet (Commit) 3a651304 authored tarafından David Tardon's avatar David Tardon

fdo#65132 compute font height correctly

Change-Id: I8da66b102a554c9d5d275ff46e40dd707199d4f4
üst b7421889
...@@ -7082,7 +7082,7 @@ FontMetric OutputDevice::GetFontMetric() const ...@@ -7082,7 +7082,7 @@ FontMetric OutputDevice::GetFontMetric() const
// set aMetric with info from font // set aMetric with info from font
aMetric.SetName( maFont.GetName() ); aMetric.SetName( maFont.GetName() );
aMetric.SetStyleName( pMetric->GetStyleName() ); aMetric.SetStyleName( pMetric->GetStyleName() );
aMetric.SetSize( PixelToLogic( Size( pMetric->mnWidth, pMetric->mnAscent+pMetric->mnDescent-pMetric->mnIntLeading ) ) ); aMetric.SetSize( PixelToLogic( Size( pMetric->mnWidth, pMetric->mnAscent+pMetric->mnDescent ) ) );
aMetric.SetCharSet( pMetric->IsSymbolFont() ? RTL_TEXTENCODING_SYMBOL : RTL_TEXTENCODING_UNICODE ); aMetric.SetCharSet( pMetric->IsSymbolFont() ? RTL_TEXTENCODING_SYMBOL : RTL_TEXTENCODING_UNICODE );
aMetric.SetFamily( pMetric->GetFamilyType() ); aMetric.SetFamily( pMetric->GetFamilyType() );
aMetric.SetPitch( pMetric->GetPitch() ); aMetric.SetPitch( pMetric->GetPitch() );
......
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