mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Refactor translateFont() to be more readable
This commit is contained in:
parent
12ef21cbbe
commit
8c21f53c98
2 changed files with 227 additions and 222 deletions
4
fonts.js
4
fonts.js
|
@ -510,7 +510,7 @@ var Font = (function Font() {
|
|||
this.type = properties.type;
|
||||
this.textMatrix = properties.textMatrix;
|
||||
this.loadedName = getUniqueName();
|
||||
this.compositeFont = properties.compositeFont;
|
||||
this.composite = properties.composite;
|
||||
this.loading = true;
|
||||
};
|
||||
|
||||
|
@ -1352,7 +1352,7 @@ var Font = (function Font() {
|
|||
return chars;
|
||||
str = '';
|
||||
|
||||
if (this.compositeFont) {
|
||||
if (this.composite) {
|
||||
// composite fonts have multi-byte strings convert the string from
|
||||
// single-byte to multi-byte
|
||||
// XXX assuming CIDFonts are two-byte - later need to extract the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue