Ensure that the CIDSystemInfo
strings, in Type0 fonts, are correctly decoded
This isn't directly related to the subsequent patch, but just something that I happened to notice while poking around in the font code.
This commit is contained in:
parent
3521424576
commit
cfdb597e4a
@ -16,8 +16,8 @@
|
||||
import {
|
||||
AbortException, assert, CMapCompressionType, createPromiseCapability,
|
||||
FONT_IDENTITY_MATRIX, FormatError, getLookupTableFactory, IDENTITY_MATRIX,
|
||||
info, isNum, isString, NativeImageDecoding, OPS, TextRenderingMode,
|
||||
UNSUPPORTED_FEATURES, Util, warn
|
||||
info, isNum, isString, NativeImageDecoding, OPS, stringToPDFString,
|
||||
TextRenderingMode, UNSUPPORTED_FEATURES, Util, warn
|
||||
} from '../shared/util';
|
||||
import { CMapFactory, IdentityCMap } from './cmap';
|
||||
import { DecodeStream, Stream } from './stream';
|
||||
@ -1871,8 +1871,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
||||
var cidSystemInfo = dict.get('CIDSystemInfo');
|
||||
if (isDict(cidSystemInfo)) {
|
||||
properties.cidSystemInfo = {
|
||||
registry: cidSystemInfo.get('Registry'),
|
||||
ordering: cidSystemInfo.get('Ordering'),
|
||||
registry: stringToPDFString(cidSystemInfo.get('Registry')),
|
||||
ordering: stringToPDFString(cidSystemInfo.get('Ordering')),
|
||||
supplement: cidSystemInfo.get('Supplement'),
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user