Add support for brackets around the header emails
This commit is contained in:
parent
0ebd3cdf93
commit
e21d7b3000
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…
Reference in New Issue
Block a user