mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
fontName can be stored in xref
This commit is contained in:
parent
f340f3155d
commit
cffcac597c
1 changed files with 1 additions and 1 deletions
2
pdf.js
2
pdf.js
|
@ -3681,7 +3681,7 @@ var PartialEvaluator = (function() {
|
|||
|
||||
var descriptor = xref.fetch(fd);
|
||||
|
||||
var fontName = descriptor.get('FontName');
|
||||
var fontName = xref.fetchIfRef(descriptor.get('FontName'));
|
||||
assertWellFormed(IsName(fontName), 'invalid font name');
|
||||
fontName = fontName.name.replace(/[\+,\-]/g, '_');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue