Merge pull request #5463 from Snuffleupagus/wingdings
Add basic support for non-embedded Wingdings fonts
This commit is contained in:
commit
0c3a8ba657
@ -371,7 +371,8 @@ var nonStdFontMap = {
|
||||
'MS-PMincho': 'MS PMincho',
|
||||
'MS-PMincho-Bold': 'MS PMincho-Bold',
|
||||
'MS-PMincho-BoldItalic': 'MS PMincho-BoldItalic',
|
||||
'MS-PMincho-Italic': 'MS PMincho-Italic'
|
||||
'MS-PMincho-Italic': 'MS PMincho-Italic',
|
||||
'Wingdings': 'ZapfDingbats'
|
||||
};
|
||||
|
||||
var serifFonts = {
|
||||
@ -2500,6 +2501,10 @@ var Font = (function FontClosure() {
|
||||
this.toFontChar[charCode] = fontChar;
|
||||
}
|
||||
} else if (/Dingbats/i.test(fontName)) {
|
||||
if (/Wingdings/i.test(name)) {
|
||||
warn('Wingdings font without embedded font file, ' +
|
||||
'falling back to the ZapfDingbats encoding.');
|
||||
}
|
||||
var dingbats = Encodings.ZapfDingbatsEncoding;
|
||||
for (charCode in dingbats) {
|
||||
fontChar = DingbatsGlyphsUnicode[dingbats[charCode]];
|
||||
|
Loading…
x
Reference in New Issue
Block a user