Merge pull request #3890 from sriram-dev/3205-word-spacing
correct word spacing
This commit is contained in:
		
						commit
						d4167b62c8
					
				@ -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);
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										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
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -1436,5 +1436,14 @@
 | 
				
			|||||||
       "firstPage": 1,
 | 
					       "firstPage": 1,
 | 
				
			||||||
       "lastPage": 2,
 | 
					       "lastPage": 2,
 | 
				
			||||||
       "type": "eq"
 | 
					       "type": "eq"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {  "id": "issue3205",
 | 
				
			||||||
 | 
					       "file": "pdfs/issue3205.pdf",
 | 
				
			||||||
 | 
					       "md5": "e833326f69f2fdf7c1c8438fe1d3b622",
 | 
				
			||||||
 | 
					       "rounds": 1,
 | 
				
			||||||
 | 
					       "link": true,
 | 
				
			||||||
 | 
					       "firstPage": 4,
 | 
				
			||||||
 | 
					       "lastPage": 4,
 | 
				
			||||||
 | 
					       "type": "eq"
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user