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

Fixes non-Japanese characters spacing

This commit is contained in:
vyv03354 2013-01-24 01:15:02 +09:00
parent a0313bef22
commit 0df411a3da
4 changed files with 15 additions and 4 deletions

View file

@ -4171,12 +4171,16 @@ var Font = (function FontClosure() {
}
var cidEncoding = properties.cidEncoding;
if (cidEncoding && cidEncoding.indexOf('Identity-') !== 0) {
if (!cidEncoding) {
return;
}
if (cidEncoding.indexOf('Identity-') !== 0) {
// input is already Unicode for non-Identity CMap encodings.
// However, Unicode-to-CID conversion is needed
// regardless of the CMap encoding. So we can't reset
// unicodeToCID.
this.cidToUnicode = [];
} else {
// We don't have to do reverse conversions if the string is
// already CID.
this.unicodeToCID = [];
}
},