diff options
author | Khaled Hosny <khaled@aliftype.com> | 2022-09-05 22:36:20 +0200 |
---|---|---|
committer | خالد حسني <khaled@aliftype.com> | 2022-09-06 15:09:57 +0200 |
commit | 394655636307de3ba3c4b2d52f3c1abf4b900e18 (patch) | |
tree | 5e898736ca4f3b715aa7320d2e0c62898b3e2e8f /vcl/qt5 | |
parent | 12b89902036dba8d457c3e03080a4db50b99adcb (diff) |
vcl: Drop unused SalGraphics::CreateFontSubset() argument
pWidths is always nullptr.
Change-Id: I1c666f146865786269e9513cbb6c8ffdc7df96e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139461
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@aliftype.com>
Diffstat (limited to 'vcl/qt5')
-rw-r--r-- | vcl/qt5/QtGraphics_Text.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/vcl/qt5/QtGraphics_Text.cxx b/vcl/qt5/QtGraphics_Text.cxx index 2ee3d9a71569..c8c59bc48cc3 100644 --- a/vcl/qt5/QtGraphics_Text.cxx +++ b/vcl/qt5/QtGraphics_Text.cxx @@ -226,7 +226,7 @@ const sal_uInt8* QtTrueTypeFont::table(sal_uInt32 ord, sal_uInt32& size) const bool QtGraphics::CreateFontSubset(const OUString& rToFile, const vcl::font::PhysicalFontFace* pFontFace, const sal_GlyphId* pGlyphIds, const sal_uInt8* pEncoding, - sal_Int32* pGlyphWidths, int nGlyphCount, FontSubsetInfo& rInfo) + int nGlyphCount, FontSubsetInfo& rInfo) { OUString aSysPath; if (osl_File_E_None != osl_getSystemPathFromFileURL(rToFile.pData, &aSysPath.pData)) @@ -243,7 +243,7 @@ bool QtGraphics::CreateFontSubset(const OUString& rToFile, if (!aCFFtable.isEmpty()) return SalGraphics::CreateCFFfontSubset( reinterpret_cast<const sal_uInt8*>(aCFFtable.data()), aCFFtable.size(), aToFile, - pGlyphIds, pEncoding, pGlyphWidths, nGlyphCount, rInfo); + pGlyphIds, pEncoding, nGlyphCount, rInfo); // fill details about the subsetted font rInfo.m_nFontType = FontType::SFNT_TTF; @@ -258,8 +258,7 @@ bool QtGraphics::CreateFontSubset(const OUString& rToFile, if (GetTTGlobalFontHeadInfo(&aTTF, nXmin, nYmin, nXmax, nYmax, nMacStyleFlags)) rInfo.m_aFontBBox = tools::Rectangle(Point(nXmin, nYmin), Point(nXmax, nYmax)); - return SalGraphics::CreateTTFfontSubset(aTTF, aToFile, false /* use FontSelectPattern? */, - pGlyphIds, pEncoding, pGlyphWidths, nGlyphCount); + return SalGraphics::CreateTTFfontSubset(aTTF, aToFile, pGlyphIds, pEncoding, nGlyphCount); } const void* QtGraphics::GetEmbedFontData(const vcl::font::PhysicalFontFace*, |