Merge pull request #2597 from vyv03354/master

Fixes non-Japanese characters spacing
This commit is contained in:
Yury Delendik 2013-01-24 07:42:47 -08:00
commit 42c00b09bc
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 = [];
}
},

View File

@ -40,6 +40,7 @@
!mixedfonts.pdf
!shading_extend.pdf
!noembed-identity.pdf
!noembed-identity-2.pdf
!noembed-jis7.pdf
!noembed-eucjp.pdf
!noembed-sjis.pdf

Binary file not shown.

View File

@ -823,6 +823,12 @@
"rounds": 1,
"type": "eq"
},
{ "id": "noembed-identity-2",
"file": "pdfs/noembed-identity-2.pdf",
"md5": "5549571a910814a9c53a1761b27fd028",
"rounds": 1,
"type": "eq"
},
{ "id": "noembed-jis7",
"file": "pdfs/noembed-jis7.pdf",
"md5": "a0f6cf5a830f23d0c35994a6aaf92b3d",