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
@ -4562,10 +4562,12 @@ 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 {
|
||||
for (var i = 0, ii = chars.length; i < ii; ++i) {
|
||||
var charcode = chars.charCodeAt(i);
|
||||
|
2
test/pdfs/issue3205.pdf.link
Normal file
2
test/pdfs/issue3205.pdf.link
Normal file
@ -0,0 +1,2 @@
|
||||
http://teach.beaverton.k12.or.us/~shannon_schilling/FOV1-00015633/FOV1-0007B939/FOV1-000B0E58/Physics%20HL%20paper%202%20TZ1%20markscheme.pdf
|
||||
|
@ -1417,5 +1417,14 @@
|
||||
"firstPage": 1,
|
||||
"lastPage": 2,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "issue3205",
|
||||
"file": "pdfs/issue3205.pdf",
|
||||
"md5": "e833326f69f2fdf7c1c8438fe1d3b622",
|
||||
"rounds": 1,
|
||||
"link": true,
|
||||
"firstPage": 4,
|
||||
"lastPage": 4,
|
||||
"type": "eq"
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user