small fixes: index and formatting
This commit is contained in:
parent
6403c91cbb
commit
cbfbd93e7a
6
fonts.js
6
fonts.js
@ -429,7 +429,7 @@ var Font = (function Font() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Trying to fix encoding using glyph widths and CIDSystemInfo
|
// Trying to fix encoding using glyph widths and CIDSystemInfo.
|
||||||
this.fixWidths(properties);
|
this.fixWidths(properties);
|
||||||
|
|
||||||
if (!file) {
|
if (!file) {
|
||||||
@ -1429,9 +1429,9 @@ var Font = (function Font() {
|
|||||||
var unicode = cidToUnicode[i];
|
var unicode = cidToUnicode[i];
|
||||||
if (isArray(unicode)) {
|
if (isArray(unicode)) {
|
||||||
if (glyph in glyphsWidths) {
|
if (glyph in glyphsWidths) {
|
||||||
var length = unicode.length;
|
var length = unicode.length;
|
||||||
for (j = 0; j < length; j++) {
|
for (j = 0; j < length; j++) {
|
||||||
k = unicode[i];
|
k = unicode[j];
|
||||||
encoding[k] = {
|
encoding[k] = {
|
||||||
unicode: k <= 0x1f || (k >= 127 && k <= 255) ?
|
unicode: k <= 0x1f || (k >= 127 && k <= 255) ?
|
||||||
k + kCmapGlyphOffset : k,
|
k + kCmapGlyphOffset : k,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user