mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Disables symbolic encoding for non-standard fonts
This commit is contained in:
parent
cb05144642
commit
a89cb5dd7a
1 changed files with 7 additions and 2 deletions
|
@ -574,8 +574,13 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
|
||||
var flags = properties.flags;
|
||||
var differences = [];
|
||||
var baseEncoding = !!(flags & FontFlags.Symbolic) ?
|
||||
Encodings.symbolsEncoding : Encodings.StandardEncoding;
|
||||
var baseEncoding = Encodings.StandardEncoding;
|
||||
// The Symbolic attribute can be misused for regular fonts
|
||||
// Heuristic: we have to check if the font is a standard one also
|
||||
if (!!(flags & FontFlags.Symbolic)) {
|
||||
baseEncoding = !properties.file ? Encodings.symbolsEncoding :
|
||||
Encodings.MacRomanEncoding;
|
||||
}
|
||||
var hasEncoding = dict.has('Encoding');
|
||||
if (hasEncoding) {
|
||||
var encoding = dict.get('Encoding');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue