1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 22:58:07 +02:00

Merge pull request #19735 from Snuffleupagus/Type3WordSpacing

Apply char/word-spacing correctly for missing Type3-glyphs
This commit is contained in:
Tim van der Meij 2025-03-30 12:07:54 +02:00 committed by GitHub
commit 45cbe8bb0d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 149 additions and 3 deletions

View file

@ -2264,9 +2264,7 @@ class CanvasGraphics {
const operatorList = font.charProcOperatorList[glyph.operatorListId];
if (!operatorList) {
warn(`Type3 character "${glyph.operatorListId}" is not available.`);
continue;
}
if (this.contentVisible) {
} else if (this.contentVisible) {
this.processingType3 = glyph;
this.save();
ctx.scale(fontSize, fontSize);