1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #13494 from brendandahl/stepper-show-text

Add more info for showText operator in stepper.
This commit is contained in:
Jonas Jenwald 2021-06-05 08:37:11 +02:00 committed by GitHub
commit 1dd01b8506
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 13 deletions

View file

@ -159,6 +159,7 @@ function adjustToUnicode(properties, builtInEncoding) {
class Glyph {
constructor(
originalCharCode,
fontChar,
unicode,
accent,
@ -168,6 +169,7 @@ class Glyph {
isSpace,
isInFont
) {
this.originalCharCode = originalCharCode;
this.fontChar = fontChar;
this.unicode = unicode;
this.accent = accent;
@ -179,6 +181,7 @@ class Glyph {
}
matchesForCache(
originalCharCode,
fontChar,
unicode,
accent,
@ -189,6 +192,7 @@ class Glyph {
isInFont
) {
return (
this.originalCharCode === originalCharCode &&
this.fontChar === fontChar &&
this.unicode === unicode &&
this.accent === accent &&
@ -2956,6 +2960,7 @@ class Font {
if (
!glyph ||
!glyph.matchesForCache(
charcode,
fontChar,
unicode,
accent,
@ -2967,6 +2972,7 @@ class Font {
)
) {
glyph = new Glyph(
charcode,
fontChar,
unicode,
accent,