Merge pull request #492 from notmasteryet/tree-19
Fixing the CID to GID mapping for cid fonts
This commit is contained in:
		
						commit
						7df39bb065
					
				
							
								
								
									
										11
									
								
								fonts.js
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								fonts.js
									
									
									
									
									
								
							@ -1219,10 +1219,13 @@ var Font = (function Font() {
 | 
				
			|||||||
            };
 | 
					            };
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
          for (i = 0; i <= 0x1f; i++)
 | 
					          for (i in encoding) {
 | 
				
			||||||
            encoding[i].unicode += kCmapGlyphOffset;
 | 
					            if (encoding.hasOwnProperty(i)) {
 | 
				
			||||||
          for (i = 127; i <= 255; i++)
 | 
					              var unicode = encoding[i].unicode;
 | 
				
			||||||
            encoding[i].unicode += kCmapGlyphOffset;
 | 
					              if (unicode <= 0x1f || (unicode >= 127 && unicode <= 255))
 | 
				
			||||||
 | 
					                encoding[i].unicode = unicode += kCmapGlyphOffset;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        var glyphs = [];
 | 
					        var glyphs = [];
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user