summaryrefslogtreecommitdiff
path: root/vcl/inc/unx
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@aliftype.com>2022-09-08 02:03:20 +0200
committerخالد حسني <khaled@aliftype.com>2022-09-08 16:31:42 +0200
commit05b3d7ea4673654e809be816bee0fa67fbf0308a (patch)
treee64bf6d7a76df37ec2f4e214d89d9f1c23e92e91 /vcl/inc/unx
parentf82e1596f5d886c60cbf41e9912de77be42eff9f (diff)
vcl: Pass FontCharMap to OpenTTFont*() when possible
Avoids parsing “cmap” table again to get it. Change-Id: I19eb882efd8c8aaaeb2fa770405ef2d69d985104 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139622 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@aliftype.com>
Diffstat (limited to 'vcl/inc/unx')
-rw-r--r--vcl/inc/unx/fontmanager.hxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/vcl/inc/unx/fontmanager.hxx b/vcl/inc/unx/fontmanager.hxx
index f9b1930175da..f85a80901f74 100644
--- a/vcl/inc/unx/fontmanager.hxx
+++ b/vcl/inc/unx/fontmanager.hxx
@@ -267,18 +267,15 @@ public:
// creates a new font subset of an existing SFNT font
// returns true in case of success, else false
- // nFont: the font to be subsetted
+ // pFace: the font face to be subsetted
// rOutFile: the file to put the new subset into;
// must be a valid osl file URL
// pGlyphIDs: input array of glyph ids for new font
// pNewEncoding: the corresponding encoding in the new font
- // pWidths: output array of widths of requested glyphs
// nGlyphs: number of glyphs in arrays
- // pCapHeight:: capital height of the produced font
- // pXMin, pYMin, pXMax, pYMax: outgoing font bounding box
// TODO: callers of this method should use its FontSubsetInfo counterpart directly
bool createFontSubset( FontSubsetInfo&,
- fontID nFont,
+ const vcl::font::PhysicalFontFace* pFace,
const OUString& rOutFile,
const sal_GlyphId* pGlyphIDs,
const sal_uInt8* pNewEncoding,