Refactor translateFont() to be more readable - part3
This commit is contained in:
parent
4d2b8ea1c8
commit
c5b83eaf73
14
pdf.js
14
pdf.js
@ -4415,12 +4415,20 @@ var PartialEvaluator = (function() {
|
||||
map[i] = GlyphsUnicode[j] || 0;
|
||||
}
|
||||
}
|
||||
|
||||
var properties = {
|
||||
type: type.name,
|
||||
encoding: map,
|
||||
differences: [],
|
||||
firstChar: 0,
|
||||
lastChar: 256
|
||||
};
|
||||
this.extractEncoding(dict, xref, properties);
|
||||
|
||||
return {
|
||||
name: baseFontName,
|
||||
dict: baseDict,
|
||||
properties: {
|
||||
encoding: map
|
||||
}
|
||||
properties: properties
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user