Use the right width field in hmtx
This commit is contained in:
		
							parent
							
								
									bcf5ade41c
								
							
						
					
					
						commit
						798d7a10ca
					
				
							
								
								
									
										2
									
								
								fonts.js
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								fonts.js
									
									
									
									
									
								
							@ -733,7 +733,7 @@ var Font = (function () {
 | 
			
		||||
      hmtx = "\x01\xF4\x00\x00"; // Fake .notdef
 | 
			
		||||
      var width = 0, lsb = 0;
 | 
			
		||||
      for (var i = 0; i < charstrings.length; i++) {
 | 
			
		||||
        width = charstrings[i].charstring[1];
 | 
			
		||||
        width = charstrings[i].charstring[0];
 | 
			
		||||
        hmtx += string16(width) + string16(lsb);
 | 
			
		||||
      }
 | 
			
		||||
      hmtx = stringToArray(hmtx);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user