mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #4068 from yurydelendik/bug864847
Adjusts heuristic for disabling Symbol encoding
This commit is contained in:
commit
bac4133f21
5 changed files with 110 additions and 3 deletions
|
@ -984,10 +984,11 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
Encodings.WinAnsiEncoding :
|
||||
Encodings.StandardEncoding;
|
||||
// The Symbolic attribute can be misused for regular fonts
|
||||
// Heuristic: we have to check if the font is a standard one also
|
||||
// Heuristic: we have to check if the font is a standard one or
|
||||
// toUnicode is provided
|
||||
if (!!(flags & FontFlags.Symbolic)) {
|
||||
baseEncoding = !properties.file ? Encodings.SymbolSetEncoding :
|
||||
Encodings.MacRomanEncoding;
|
||||
baseEncoding = !properties.file && !properties.toUnicode ?
|
||||
Encodings.SymbolSetEncoding : Encodings.MacRomanEncoding;
|
||||
}
|
||||
if (dict.has('Encoding')) {
|
||||
var encoding = dict.get('Encoding');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue