From 1d5a02d12eacadb708c18e70db747e80ab8817a9 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Mon, 5 Dec 2022 22:07:29 +0200 Subject: Simplify PhysicalFontFace::CreateFontSubset() a bit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hide the logic inside fontsubset and don’t leak it to the caller. Change-Id: Ibc845e0051eaeb64e8de42f80d4d404fd6a3880e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143686 Tested-by: Jenkins Reviewed-by: خالد حسني --- vcl/inc/sft.hxx | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'vcl/inc/sft.hxx') diff --git a/vcl/inc/sft.hxx b/vcl/inc/sft.hxx index 52d9c3db014d..b5fc71b44530 100644 --- a/vcl/inc/sft.hxx +++ b/vcl/inc/sft.hxx @@ -608,20 +608,10 @@ class TrueTypeFont; int nGlyphs); VCL_DLLPUBLIC bool CreateTTFfontSubset(AbstractTrueTypeFont& aTTF, - std::vector& rOutBuffer, - const sal_GlyphId* pGlyphIds, - const sal_uInt8* pEncoding, - int nGlyphCount); - - VCL_DLLPUBLIC bool CreateCFFfontSubset(const unsigned char* pFontBytes, - int nByteLength, std::vector& rOutBuffer, const sal_GlyphId* pGlyphIds, const sal_uInt8* pEncoding, int nGlyphCount, FontSubsetInfo& rInfo); - - VCL_DLLPUBLIC void FillFontSubsetInfo(AbstractTrueTypeFont *ttf, - FontSubsetInfo& rInfo); /** * Generates a new PostScript Type42 font and dumps it to outf file. * This function substitutes glyph 0 for all glyphIDs that are not found in the font. -- cgit