mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Fix word spacing in Type 0 fonts
Fix word spacing in Type 0 font correct word spacing correct word spacing in type 0 font fix word spacing
This commit is contained in:
parent
080a5c16ea
commit
8dad6d6e8a
3 changed files with 14 additions and 1 deletions
|
@ -4562,8 +4562,10 @@ var Font = (function FontClosure() {
|
|||
var glyph = this.charToGlyph(charcode);
|
||||
glyphs.push(glyph);
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue