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:
parent
a0313bef22
commit
0df411a3da
4 changed files with 15 additions and 4 deletions
12
src/fonts.js
12
src/fonts.js
|
@ -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 = [];
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue