mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
Add support for brackets around the header emails
This commit is contained in:
parent
0ebd3cdf93
commit
e21d7b3000
1 changed files with 8 additions and 4 deletions
12
PDFFont.js
12
PDFFont.js
|
@ -38,10 +38,14 @@ var Fonts = {
|
|||
this._active = this[aFontName];
|
||||
},
|
||||
|
||||
getUnicodeFor: function fonts_getUnicodeFor(aCode) {
|
||||
var glyph = this._active.encoding[aCode];
|
||||
var unicode = "0x" + GlyphsUnicode[glyph];
|
||||
return unicode || aCode;
|
||||
unicodeFromCode: function fonts_unicodeFromCode(aCode) {
|
||||
var active = this._active;
|
||||
if (!active)
|
||||
return aCode;
|
||||
|
||||
var difference = active.encoding[aCode];
|
||||
var unicode = GlyphsUnicode[difference];
|
||||
return unicode ? "0x" + unicode : aCode;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue