|
|
@ -4575,10 +4575,12 @@ var Font = (function FontClosure() { |
|
|
|
var glyph = this.charToGlyph(charcode); |
|
|
|
var glyph = this.charToGlyph(charcode); |
|
|
|
glyphs.push(glyph); |
|
|
|
glyphs.push(glyph); |
|
|
|
// placing null after each word break charcode (ASCII SPACE)
|
|
|
|
// placing null after each word break charcode (ASCII SPACE)
|
|
|
|
if (charcode == 0x20) |
|
|
|
// Ignore occurences of 0x20 in multiple-byte codes.
|
|
|
|
|
|
|
|
if (length === 1 && chars.charCodeAt(i - 1) === 0x20) { |
|
|
|
glyphs.push(null); |
|
|
|
glyphs.push(null); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
for (var i = 0, ii = chars.length; i < ii; ++i) { |
|
|
|
for (var i = 0, ii = chars.length; i < ii; ++i) { |
|
|
|
var charcode = chars.charCodeAt(i); |
|
|
|
var charcode = chars.charCodeAt(i); |
|
|
|