vcl/inc/unx/fontmanager.hxx                 |    7 -------
 vcl/unx/generic/fontmanager/fontmanager.cxx |   26 --------------------------
 2 files changed, 33 deletions(-)

New commits:
commit c9615dd5fb3d04db49452701bf9ded3c3e86b9e2
Author:     Khaled Hosny <kha...@aliftype.com>
AuthorDate: Sat Sep 24 15:26:56 2022 +0200
Commit:     خالد حسني <kha...@aliftype.com>
CommitDate: Sat Sep 24 17:12:32 2022 +0200

    vcl: Remove unused PrintFontManager::getFontBoundingBox()
    
    Change-Id: I0aed5ec3bbab91a1fe57996a2f647b758369308c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140548
    Tested-by: Jenkins
    Reviewed-by: خالد حسني <kha...@aliftype.com>

diff --git a/vcl/inc/unx/fontmanager.hxx b/vcl/inc/unx/fontmanager.hxx
index 2ec06afcb435..356b08b95a0e 100644
--- a/vcl/inc/unx/fontmanager.hxx
+++ b/vcl/inc/unx/fontmanager.hxx
@@ -128,10 +128,6 @@ class VCL_PLUGIN_PUBLIC PrintFontManager
         int               m_nAscend;
         int               m_nDescend;
         int               m_nLeading;
-        int               m_nXMin; // font bounding box
-        int               m_nYMin;
-        int               m_nXMax;
-        int               m_nYMax;
 
         int               m_nDirectory;       // atom containing system 
dependent path
         OString           m_aFontFile;        // relative to directory
@@ -262,9 +258,6 @@ public:
     // get a specific fonts descent
     int getFontDescend( fontID nFontID );
 
-    // get a fonts glyph bounding box
-    void getFontBoundingBox( fontID nFont, int& xMin, int& yMin, int& xMax, 
int& yMax );
-
     // font administration functions
 
     /*  system dependent font matching
diff --git a/vcl/unx/generic/fontmanager/fontmanager.cxx 
b/vcl/unx/generic/fontmanager/fontmanager.cxx
index 8a95cebb3aec..d926c5bba1e6 100644
--- a/vcl/unx/generic/fontmanager/fontmanager.cxx
+++ b/vcl/unx/generic/fontmanager/fontmanager.cxx
@@ -89,10 +89,6 @@ PrintFontManager::PrintFont::PrintFont()
 ,   m_nAscend(0)
 ,   m_nDescend(0)
 ,   m_nLeading(0)
-,   m_nXMin(0)
-,   m_nYMin(0)
-,   m_nXMax(0)
-,   m_nYMax(0)
 ,   m_nDirectory(0)
 ,   m_nCollectionEntry(0)
 ,   m_nVariationEntry(0)
@@ -650,12 +646,6 @@ bool PrintFontManager::analyzeSfntFile( PrintFont& rFont ) 
const
         if( rFont.m_nLeading == 0 )
             rFont.m_nLeading = 15 * (rFont.m_nAscend+rFont.m_nDescend) / 100;
 
-        // get bounding box
-        rFont.m_nXMin = aInfo.xMin;
-        rFont.m_nYMin = aInfo.yMin;
-        rFont.m_nXMax = aInfo.xMax;
-        rFont.m_nYMax = aInfo.yMax;
-
         CloseTTFont( pTTFont );
         bSuccess = true;
     }
@@ -791,22 +781,6 @@ bool PrintFontManager::getFontFastInfo( fontID nFontID, 
FastPrintFontInfo& rInfo
     return pFont != nullptr;
 }
 
-void PrintFontManager::getFontBoundingBox( fontID nFontID, int& xMin, int& 
yMin, int& xMax, int& yMax )
-{
-    PrintFont* pFont = getFont( nFontID );
-    if( pFont )
-    {
-        if( pFont->m_nXMin == 0 && pFont->m_nYMin == 0 && pFont->m_nXMax == 0 
&& pFont->m_nYMax == 0 )
-        {
-            analyzeSfntFile(*pFont);
-        }
-        xMin = pFont->m_nXMin;
-        yMin = pFont->m_nYMin;
-        xMax = pFont->m_nXMax;
-        yMax = pFont->m_nYMax;
-    }
-}
-
 int PrintFontManager::getFontFaceNumber( fontID nFontID ) const
 {
     int nRet = 0;

Reply via email to