diff options
author | Philipp Lohmann <pl@openoffice.org> | 2001-11-16 11:53:05 +0000 |
---|---|---|
committer | Philipp Lohmann <pl@openoffice.org> | 2001-11-16 11:53:05 +0000 |
commit | dc0d23af3cb85e57d55ec2e22c511fda29f37265 (patch) | |
tree | 47c6113c579e086041d3538bed4d689e1ce8dafd /psprint | |
parent | 6a8baba07438f5c88f1fa5cd258412fba7bcce45 (diff) |
#93639# try to guess a better global vertical advance width
Diffstat (limited to 'psprint')
-rw-r--r-- | psprint/source/fontmanager/fontmanager.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/psprint/source/fontmanager/fontmanager.cxx b/psprint/source/fontmanager/fontmanager.cxx index dc608076011e..9e7ec27a904b 100644 --- a/psprint/source/fontmanager/fontmanager.cxx +++ b/psprint/source/fontmanager/fontmanager.cxx @@ -2,9 +2,9 @@ * * $RCSfile: fontmanager.cxx,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: pl $ $Date: 2001-11-09 15:44:34 $ + * last change: $Author: pl $ $Date: 2001-11-16 12:53:05 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1391,8 +1391,8 @@ bool PrintFontManager::analyzeTrueTypeFile( PrintFont* pFont ) const if( pFont->m_nLeading == 0 ) pFont->m_nLeading = 15 * (pFont->m_nAscend+pFont->m_nDescend) / 100; - if( pFont->m_nAscend && pFont->m_nDescend ) - pFont->m_aGlobalMetricX.height = pFont->m_aGlobalMetricY.height = pFont->m_nAscend + pFont->m_nDescend; + if( pFont->m_nAscend ) + pFont->m_aGlobalMetricX.height = pFont->m_aGlobalMetricY.height = pFont->m_nAscend; // get type flags pTTFontFile->m_nTypeFlags = (unsigned int)aInfo.typeFlags; |