Fix a small mistake for cmap format 0
This commit is contained in:
		
							parent
							
								
									cf93f23178
								
							
						
					
					
						commit
						ac163da4c8
					
				
							
								
								
									
										4
									
								
								fonts.js
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								fonts.js
									
									
									
									
									
								
							@ -934,7 +934,9 @@ var Font = (function Font() {
 | 
				
			|||||||
                deltas.push(index);
 | 
					                deltas.push(index);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                var unicode = j + kCmapGlyphOffset;
 | 
					                var unicode = j + kCmapGlyphOffset;
 | 
				
			||||||
                encoding[j].unicode = unicode;
 | 
					                var mapping = encoding[j] || {};
 | 
				
			||||||
 | 
					                mapping.unicode = unicode;
 | 
				
			||||||
 | 
					                encoding[j] = mapping;
 | 
				
			||||||
                glyphs.push({ unicode: unicode });
 | 
					                glyphs.push({ unicode: unicode });
 | 
				
			||||||
              }
 | 
					              }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user