summaryrefslogtreecommitdiff
path: root/vcl/unx/generic/fontmanager
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-30 11:08:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-30 19:50:30 +0200
commit979d58c9a96884e36d1585df0c04c89b1f53fa99 (patch)
treebce40aad53ac5123a2864da59b8d889b8a51e577 /vcl/unx/generic/fontmanager
parent3c1fc723ff622d8a541fa26a3397ca4258332e4a (diff)
loplugin:unusedfields in toolkit..xmloff
Change-Id: I4964ff97e0a1735dc08c6ad204cae0b08e9ffc2c Reviewed-on: https://gerrit.libreoffice.org/39406 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/generic/fontmanager')
-rw-r--r--vcl/unx/generic/fontmanager/fontmanager.cxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/vcl/unx/generic/fontmanager/fontmanager.cxx b/vcl/unx/generic/fontmanager/fontmanager.cxx
index 10ae47012b8f..98babfee2491 100644
--- a/vcl/unx/generic/fontmanager/fontmanager.cxx
+++ b/vcl/unx/generic/fontmanager/fontmanager.cxx
@@ -649,9 +649,6 @@ bool PrintFontManager::analyzeSfntFile( PrintFont* pFont ) const
pFont->m_aEncoding = aInfo.symbolEncoded ? RTL_TEXTENCODING_SYMBOL : RTL_TEXTENCODING_UCS2;
- pFont->m_aGlobalMetricY.width = pFont->m_aGlobalMetricX.width = aInfo.xMax - aInfo.xMin;
- pFont->m_aGlobalMetricY.height = pFont->m_aGlobalMetricX.height = aInfo.yMax - aInfo.yMin;
-
if( aInfo.ascender && aInfo.descender )
{
pFont->m_nLeading = aInfo.linegap;
@@ -679,9 +676,6 @@ bool PrintFontManager::analyzeSfntFile( 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_aGlobalMetricX.height = pFont->m_aGlobalMetricY.height = pFont->m_nAscend + pFont->m_nDescend;
-
// get bounding box
pFont->m_nXMin = aInfo.xMin;
pFont->m_nYMin = aInfo.yMin;