extracted filetype in pdf.js instead of fonts.js
This commit is contained in:
parent
37ef03d51e
commit
8763002c44
4
fonts.js
4
fonts.js
@ -392,8 +392,8 @@ var Font = (function() {
|
|||||||
case 'CIDFontType0':
|
case 'CIDFontType0':
|
||||||
this.mimetype = 'font/opentype';
|
this.mimetype = 'font/opentype';
|
||||||
|
|
||||||
var subtype = file.dict.get('Subtype');
|
var subtype = properties.subtype;
|
||||||
if (subtype && subtype.name === 'Type1C') {
|
if (subtype === 'Type1C') {
|
||||||
var cff = new Type2CFF(file);
|
var cff = new Type2CFF(file);
|
||||||
} else {
|
} else {
|
||||||
var cff = new CFF(name, file, properties);
|
var cff = new CFF(name, file, properties);
|
||||||
|
7
pdf.js
7
pdf.js
@ -3814,8 +3814,15 @@ var PartialEvaluator = (function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fontFile && fontFile.dict) {
|
||||||
|
var fileType = fontFile.dict.get('Subtype');
|
||||||
|
if (fileType)
|
||||||
|
fileType = fileType.name;
|
||||||
|
}
|
||||||
|
|
||||||
var properties = {
|
var properties = {
|
||||||
type: subType.name,
|
type: subType.name,
|
||||||
|
subtype: fileType,
|
||||||
encoding: encodingMap,
|
encoding: encodingMap,
|
||||||
charset: charset,
|
charset: charset,
|
||||||
firstChar: fontDict.get('FirstChar'),
|
firstChar: fontDict.get('FirstChar'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user