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 {
|
import {
|
||||||
AbortException, assert, CMapCompressionType, createPromiseCapability,
|
AbortException, assert, CMapCompressionType, createPromiseCapability,
|
||||||
FONT_IDENTITY_MATRIX, FormatError, getLookupTableFactory, IDENTITY_MATRIX,
|
FONT_IDENTITY_MATRIX, FormatError, getLookupTableFactory, IDENTITY_MATRIX,
|
||||||
info, isNum, isString, NativeImageDecoding, OPS, TextRenderingMode,
|
info, isNum, isString, NativeImageDecoding, OPS, stringToPDFString,
|
||||||
UNSUPPORTED_FEATURES, Util, warn
|
TextRenderingMode, UNSUPPORTED_FEATURES, Util, warn
|
||||||
} from '../shared/util';
|
} from '../shared/util';
|
||||||
import { CMapFactory, IdentityCMap } from './cmap';
|
import { CMapFactory, IdentityCMap } from './cmap';
|
||||||
import { DecodeStream, Stream } from './stream';
|
import { DecodeStream, Stream } from './stream';
|
||||||
@ -1871,8 +1871,8 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||||||
var cidSystemInfo = dict.get('CIDSystemInfo');
|
var cidSystemInfo = dict.get('CIDSystemInfo');
|
||||||
if (isDict(cidSystemInfo)) {
|
if (isDict(cidSystemInfo)) {
|
||||||
properties.cidSystemInfo = {
|
properties.cidSystemInfo = {
|
||||||
registry: cidSystemInfo.get('Registry'),
|
registry: stringToPDFString(cidSystemInfo.get('Registry')),
|
||||||
ordering: cidSystemInfo.get('Ordering'),
|
ordering: stringToPDFString(cidSystemInfo.get('Ordering')),
|
||||||
supplement: cidSystemInfo.get('Supplement'),
|
supplement: cidSystemInfo.get('Supplement'),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user