diff options
author | Khaled Hosny <khaled@aliftype.com> | 2022-06-06 00:17:02 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-06-09 10:03:51 +0200 |
commit | be39eba9a3d81e20c42f1073a365e91ce855c1cd (patch) | |
tree | ac73dbeff2745895396db7cd8a2de4211445f47b /vcl/inc/uiobject-internal.hxx | |
parent | 136fac12eb9752f1072f852cc193d6a9accdc4a7 (diff) |
Use same glyph width in PDF drawing and font subset
During PDF drawing we already know the glyph width, but when subsetting
we get it again from the font subset.
For fonts without CFF table this is redundant but harmless, but for
fonts with CFF table, if the CFF and hmtx table (the authoritative
source of glyph widths) disagree, we will be drawing the PDF string with
the wrong adjustment resulting in displaced glyphs. This is a font bug,
but avoiding redundancy and having one source of truth is an improvement
overall.
I kept the code that calculates advance widths for font subsets, just in
case it is is still used elsewhere.
Change-Id: I757cd0c2ebb6477b2f840d0005e84b5a131f7efb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135442
Tested-by: Jenkins
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/inc/uiobject-internal.hxx')
0 files changed, 0 insertions, 0 deletions