Merge pull request #4980 from Snuffleupagus/bug-1027533
Additional heuristics to recognize unknown glyphs for toUnicode (bug 1027533)
This commit is contained in:
		
						commit
						10db93be29
					
				@ -4302,6 +4302,12 @@ var Font = (function FontClosure() {
 | 
			
		||||
                (code = parseInt(glyphName.substr(1), 16))) {
 | 
			
		||||
              toUnicode[charcode] = String.fromCharCode(code);
 | 
			
		||||
            }
 | 
			
		||||
            // g00xx glyph
 | 
			
		||||
            if (glyphName.length === 5 &&
 | 
			
		||||
                glyphName[0] === 'g' &&
 | 
			
		||||
                (code = parseInt(glyphName.substr(1), 16))) {
 | 
			
		||||
              toUnicode[charcode] = String.fromCharCode(code);
 | 
			
		||||
            }
 | 
			
		||||
            // Cddd glyph
 | 
			
		||||
            if (glyphName.length >= 3 &&
 | 
			
		||||
                glyphName[0] === 'C' &&
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user