1
0
Fork 0
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:
Vivien Nicolas 2011-09-07 18:00:38 +02:00
parent 12ef21cbbe
commit 8c21f53c98
2 changed files with 227 additions and 222 deletions

View file

@ -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