Merge pull request #16294 from Snuffleupagus/rm-compileGlobalSubrIndex
Remove `CFFCompiler.compileGlobalSubrIndex`, and simplify `CFFCompiler.compileTypedArray`
This commit is contained in:
commit
c7daa66b26
@ -1742,11 +1742,6 @@ class CFFCompiler {
|
|||||||
return this.compileIndex(stringIndex);
|
return this.compileIndex(stringIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
compileGlobalSubrIndex() {
|
|
||||||
const globalSubrIndex = this.cff.globalSubrIndex;
|
|
||||||
this.out.writeByteArray(this.compileIndex(globalSubrIndex));
|
|
||||||
}
|
|
||||||
|
|
||||||
compileCharStrings(charStrings) {
|
compileCharStrings(charStrings) {
|
||||||
const charStringsIndex = new CFFIndex();
|
const charStringsIndex = new CFFIndex();
|
||||||
for (let i = 0; i < charStrings.count; i++) {
|
for (let i = 0; i < charStrings.count; i++) {
|
||||||
@ -1850,11 +1845,7 @@ class CFFCompiler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
compileTypedArray(data) {
|
compileTypedArray(data) {
|
||||||
const out = [];
|
return Array.from(data);
|
||||||
for (let i = 0, ii = data.length; i < ii; ++i) {
|
|
||||||
out[i] = data[i];
|
|
||||||
}
|
|
||||||
return out;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
compileIndex(index, trackers = []) {
|
compileIndex(index, trackers = []) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user