Merge pull request #19804 from Snuffleupagus/issue-19802
Use `adjustWidths` unconditionally for all embedded fonts (issue 19802)
This commit is contained in:
commit
53c5a53668
@ -1108,9 +1108,10 @@ class Font {
|
||||
// Repair the TrueType file. It is can be damaged in the point of
|
||||
// view of the sanitizer
|
||||
data = this.checkAndRepair(name, file, properties);
|
||||
if (this.isOpenType) {
|
||||
|
||||
adjustWidths(properties);
|
||||
|
||||
if (this.isOpenType) {
|
||||
type = "OpenType";
|
||||
}
|
||||
break;
|
||||
@ -2645,8 +2646,6 @@ class Font {
|
||||
cffFile = new Stream(tables["CFF "].data);
|
||||
cff = new CFFFont(cffFile, properties);
|
||||
|
||||
adjustWidths(properties);
|
||||
|
||||
return this.convert(name, cff, properties);
|
||||
}
|
||||
|
||||
|
||||
1
test/pdfs/.gitignore
vendored
1
test/pdfs/.gitignore
vendored
@ -28,6 +28,7 @@
|
||||
!checkbox-bad-appearance.pdf
|
||||
!issue4684.pdf
|
||||
!issue8092.pdf
|
||||
!issue19802.pdf
|
||||
!issue5256.pdf
|
||||
!issue5801.pdf
|
||||
!issue5946.pdf
|
||||
|
||||
BIN
test/pdfs/issue19802.pdf
Normal file
BIN
test/pdfs/issue19802.pdf
Normal file
Binary file not shown.
@ -3871,6 +3871,13 @@
|
||||
"annotations": true,
|
||||
"about": "LinkAnnotation with a relative link, and a /Catalog Base-URI."
|
||||
},
|
||||
{
|
||||
"id": "issue19802",
|
||||
"file": "pdfs/issue19802.pdf",
|
||||
"md5": "7a431fb7951ad605f676c80636bbe5d3",
|
||||
"rounds": 1,
|
||||
"type": "eq"
|
||||
},
|
||||
{
|
||||
"id": "issue14824",
|
||||
"file": "pdfs/issue14824.pdf",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user