diff options
author | Khaled Hosny <khaled@libreoffice.org> | 2023-08-22 10:47:33 +0300 |
---|---|---|
committer | خالد حسني <khaled@libreoffice.org> | 2023-08-22 11:45:31 +0200 |
commit | bc3f6c3a47411a3b5dafadca4e5c55cd24e30662 (patch) | |
tree | cbf890999937d79d0c2df7f9dc332fedb813338a /sc | |
parent | 027f8328eef1e149b6c99b478ed5df870291dc2d (diff) |
tdf#155610: Workaround Acrobat bug with Type 3 fonts and unusual UPEM
Adobe Acrobat seems to have a bug with Type 3 fonts with unusual UPEM,
the common 1000 and 2048 UPEM work fine, but Sitka has 2250 UPEM and
Acrobat handles the advance widths in this case incorrectly and
everything gets cramped up with gaps when we re-start glyph positioning.
Workaround this by always using 0.001 scale in FontMatrix (equivalent to
1000 UPEM) and scale everything if the font’s UPEM is different.
Change-Id: I80d25a16456f04bb00304b22b967688fa8260a83
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155935
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'sc')
0 files changed, 0 insertions, 0 deletions