@ot-builder/io-bin-cff
Advanced tools
@@ -1,2 +0,1 @@ | ||
| /// <reference types="node" /> | ||
| import { OtVar } from "@ot-builder/variance"; | ||
@@ -3,0 +2,0 @@ import * as CffInterp from "../../interp/ir"; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.computeSubroutineBias = exports.interpretCharString = exports.callCharString = exports.CffCharStringInterpreter = void 0; | ||
| exports.CffCharStringInterpreter = void 0; | ||
| exports.callCharString = callCharString; | ||
| exports.interpretCharString = interpretCharString; | ||
| exports.computeSubroutineBias = computeSubroutineBias; | ||
| const bin_util_1 = require("@ot-builder/bin-util"); | ||
@@ -462,3 +465,2 @@ const errors_1 = require("@ot-builder/errors"); | ||
| } | ||
| exports.callCharString = callCharString; | ||
| function interpretCharString(buf, st, ss, ds) { | ||
@@ -468,3 +470,2 @@ ds.setWidth(ss.defaultWidthX); | ||
| } | ||
| exports.interpretCharString = interpretCharString; | ||
| function computeSubroutineBias(cnt) { | ||
@@ -478,3 +479,2 @@ if (cnt < 1240) | ||
| } | ||
| exports.computeSubroutineBias = computeSubroutineBias; | ||
| //# sourceMappingURL=interpreter.js.map |
@@ -1,2 +0,1 @@ | ||
| /// <reference types="node" /> | ||
| import { CffReadContext } from "../../context/read"; | ||
@@ -3,0 +2,0 @@ import { CffWriteContext } from "../../context/write"; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.codeGenGlyph = void 0; | ||
| exports.codeGenGlyph = codeGenGlyph; | ||
| const ot_glyphs_1 = require("@ot-builder/ot-glyphs"); | ||
@@ -267,3 +267,2 @@ const variance_1 = require("@ot-builder/variance"); | ||
| } | ||
| exports.codeGenGlyph = codeGenGlyph; | ||
| //# sourceMappingURL=draw-call-gen.js.map |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.cffOptimizeDrawCall = exports.DrawCallOmit = exports.DrawCallOptimizationPass = exports.argIsZero = void 0; | ||
| exports.DrawCallOmit = exports.DrawCallOptimizationPass = void 0; | ||
| exports.argIsZero = argIsZero; | ||
| exports.cffOptimizeDrawCall = cffOptimizeDrawCall; | ||
| function argIsZero(x) { | ||
@@ -10,3 +12,2 @@ if (typeof x === "number") | ||
| } | ||
| exports.argIsZero = argIsZero; | ||
| class DrawCallOptimizationPass { | ||
@@ -71,3 +72,2 @@ constructor(ctx) { | ||
| } | ||
| exports.cffOptimizeDrawCall = cffOptimizeDrawCall; | ||
| //# sourceMappingURL=general.js.map |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.MinimalDrawCallOptimizers = exports.StandardDrawCallOptimizers = void 0; | ||
| exports.StandardDrawCallOptimizers = StandardDrawCallOptimizers; | ||
| exports.MinimalDrawCallOptimizers = MinimalDrawCallOptimizers; | ||
| const hhvv_curveto_1 = require("./hhvv-curveto"); | ||
@@ -17,7 +18,5 @@ const hv_lineto_1 = require("./hv-lineto"); | ||
| } | ||
| exports.StandardDrawCallOptimizers = StandardDrawCallOptimizers; | ||
| function MinimalDrawCallOptimizers(ctx) { | ||
| return []; | ||
| } | ||
| exports.MinimalDrawCallOptimizers = MinimalDrawCallOptimizers; | ||
| //# sourceMappingURL=index.js.map |
@@ -12,3 +12,3 @@ import { Frag } from "@ot-builder/bin-util"; | ||
| static measureOperand(val: number): number; | ||
| static measureInt(val: number): 2 | 1 | 3; | ||
| static measureInt(val: number): 1 | 2 | 3; | ||
| static measureReal(val: number): number; | ||
@@ -15,0 +15,0 @@ static measureOperator(opCode: number, flags?: Data.Maybe<number[]>): number; |
@@ -1,2 +0,1 @@ | ||
| /// <reference types="node" /> | ||
| import { CffWriteContext } from "../../../context/write"; | ||
@@ -3,0 +2,0 @@ import { Mir } from "../mir"; |
@@ -1,2 +0,1 @@ | ||
| /// <reference types="node" /> | ||
| import { CffLimits } from "../../../../context/write"; | ||
@@ -3,0 +2,0 @@ import { Mir, MirNonTerminal } from "../../mir"; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.mirSeqIsWellFormed = exports.TestRawDcOptimize = void 0; | ||
| exports.TestRawDcOptimize = TestRawDcOptimize; | ||
| exports.mirSeqIsWellFormed = mirSeqIsWellFormed; | ||
| const draw_call_1 = require("./draw-call"); | ||
@@ -14,3 +15,2 @@ const general_1 = require("./draw-call-optimize/general"); | ||
| } | ||
| exports.TestRawDcOptimize = TestRawDcOptimize; | ||
| function mirSeqIsWellFormed(ctx, mirSeq) { | ||
@@ -26,3 +26,2 @@ let sp = 0; | ||
| } | ||
| exports.mirSeqIsWellFormed = mirSeqIsWellFormed; | ||
| //# sourceMappingURL=test-util.js.map |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.CffDictWriteT = exports.CffDictDataCollector = exports.CffDictReadT = exports.CffDictInterpreterBase = void 0; | ||
| exports.CffDictDataCollector = exports.CffDictInterpreterBase = void 0; | ||
| exports.CffDictReadT = CffDictReadT; | ||
| exports.CffDictWriteT = CffDictWriteT; | ||
| const bin_util_1 = require("@ot-builder/bin-util"); | ||
@@ -35,3 +37,2 @@ const draw_call_1 = require("../char-string/write/draw-call"); | ||
| } | ||
| exports.CffDictReadT = CffDictReadT; | ||
| class CffDictDataCollector { | ||
@@ -52,3 +53,2 @@ } | ||
| } | ||
| exports.CffDictWriteT = CffDictWriteT; | ||
| //# sourceMappingURL=general.js.map |
+4
-4
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.Encoder = exports.Interpreter = exports.operator = exports.operand = exports.isOperator = void 0; | ||
| exports.Encoder = exports.Interpreter = void 0; | ||
| exports.isOperator = isOperator; | ||
| exports.operand = operand; | ||
| exports.operator = operator; | ||
| function isOperator(ir) { | ||
@@ -8,11 +11,8 @@ // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
| } | ||
| exports.isOperator = isOperator; | ||
| function operand(x) { | ||
| return { t: x }; | ||
| } | ||
| exports.operand = operand; | ||
| function operator(x, flags) { | ||
| return { opCode: x, flags }; | ||
| } | ||
| exports.operator = operator; | ||
| class Interpreter { | ||
@@ -19,0 +19,0 @@ operand(...xs) { |
+12
-12
@@ -31,4 +31,4 @@ export declare enum CffOperator { | ||
| ForceBold = 3086, | ||
| Charset = 15, | ||
| Encoding = 16, | ||
| Charset = 15,/* 0x0c0f Reserved */ | ||
| Encoding = 16,/* 0x0c10 Reserved */ | ||
| CharStrings = 17, | ||
@@ -48,4 +48,4 @@ LanguageGroup = 3089, | ||
| BaseFontBlend = 3095, | ||
| VStore = 24, | ||
| MaxStack = 25, | ||
| VStore = 24,/* 0x0c18 Reserved */ | ||
| MaxStack = 25,/* 0x0c19 Reserved */ | ||
| ROS = 3102, | ||
@@ -62,3 +62,3 @@ CIDFontVersion = 3103, | ||
| export declare enum CharStringOperator { | ||
| HStem = 1, | ||
| HStem = 1,/* 0x0c01 Reserved */ | ||
| VStem = 3, | ||
@@ -70,5 +70,5 @@ And = 3075, | ||
| Not = 3077, | ||
| HLineTo = 6, | ||
| VLineTo = 7, | ||
| RRCurveTo = 8, | ||
| HLineTo = 6,/* 0x0c06 Reserved */ | ||
| VLineTo = 7,/* 0x0c07 Reserved */ | ||
| RRCurveTo = 8,/* 0x0c08 Reserved */ | ||
| Abs = 3081, | ||
@@ -84,6 +84,6 @@ CallSubr = 10, | ||
| Eq = 3087, | ||
| Blend = 16, | ||
| Blend = 16,/* 0x0c10 Reserved */ | ||
| HStemHM = 18, | ||
| Drop = 3090, | ||
| HintMask = 19, | ||
| HintMask = 19,/* 0x0c13 Reserved */ | ||
| CntrMask = 20, | ||
@@ -99,3 +99,3 @@ Put = 3092, | ||
| Mul = 3096, | ||
| RLineCurve = 25, | ||
| RLineCurve = 25,/* 0x0c19 Reserved */ | ||
| VVCurveTo = 26, | ||
@@ -110,3 +110,3 @@ Sqrt = 3098, | ||
| Roll = 3102, | ||
| HVCurveTo = 31, | ||
| HVCurveTo = 31,/* 0x0c1f Reserved */ | ||
| HFlex = 3106, | ||
@@ -113,0 +113,0 @@ Flex = 3107, |
@@ -1,2 +0,1 @@ | ||
| /// <reference types="node" /> | ||
| import { Cff, OtGlyph } from "@ot-builder/ot-glyphs"; | ||
@@ -3,0 +2,0 @@ import { Data } from "@ot-builder/prelude"; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.getRevFdSelect = exports.buildCharStrings = exports.applyBuildResults = exports.cffCleanupUnusedData = exports.readCffCommon = void 0; | ||
| exports.readCffCommon = readCffCommon; | ||
| exports.cffCleanupUnusedData = cffCleanupUnusedData; | ||
| exports.applyBuildResults = applyBuildResults; | ||
| exports.buildCharStrings = buildCharStrings; | ||
| exports.getRevFdSelect = getRevFdSelect; | ||
| const errors_1 = require("@ot-builder/errors"); | ||
@@ -57,3 +61,2 @@ const ot_glyphs_1 = require("@ot-builder/ot-glyphs"); | ||
| } | ||
| exports.readCffCommon = readCffCommon; | ||
| function readGlyph(ctx, cff, gid, glyph, charStrings, gSubrs) { | ||
@@ -98,3 +101,2 @@ const fdId = cff.fdSelect ? cff.fdSelect.get(glyph) || 0 : 0; | ||
| } | ||
| exports.cffCleanupUnusedData = cffCleanupUnusedData; | ||
| function setLocalSubrForFd(fd, lSubrs) { | ||
@@ -119,3 +121,2 @@ if (!lSubrs.length) | ||
| } | ||
| exports.applyBuildResults = applyBuildResults; | ||
| function getOptimizer(cfg, ctx, fdCount) { | ||
@@ -158,3 +159,2 @@ if (cfg.cff.doGlobalOptimization) { | ||
| } | ||
| exports.buildCharStrings = buildCharStrings; | ||
| function getRevFdSelect(cff, gOrd) { | ||
@@ -170,3 +170,2 @@ if (!cff.fdSelect) | ||
| } | ||
| exports.getRevFdSelect = getRevFdSelect; | ||
| //# sourceMappingURL=shared.js.map |
+19
-19
| { | ||
| "name": "@ot-builder/io-bin-cff", | ||
| "description": "", | ||
| "version": "1.7.3", | ||
| "version": "1.7.4", | ||
| "license": "MIT", | ||
@@ -27,23 +27,23 @@ "repository": { | ||
| "dependencies": { | ||
| "@ot-builder/bin-composite-types": "1.7.3", | ||
| "@ot-builder/bin-util": "1.7.3", | ||
| "@ot-builder/common-impl": "1.7.3", | ||
| "@ot-builder/errors": "1.7.3", | ||
| "@ot-builder/ot-glyphs": "1.7.3", | ||
| "@ot-builder/ot-metadata": "1.7.3", | ||
| "@ot-builder/prelude": "1.7.3", | ||
| "@ot-builder/primitive": "1.7.3", | ||
| "@ot-builder/stat-glyphs": "1.7.3", | ||
| "@ot-builder/var-store": "1.7.3", | ||
| "@ot-builder/variance": "1.7.3", | ||
| "tslib": "^2.0.0" | ||
| "@ot-builder/bin-composite-types": "1.7.4", | ||
| "@ot-builder/bin-util": "1.7.4", | ||
| "@ot-builder/common-impl": "1.7.4", | ||
| "@ot-builder/errors": "1.7.4", | ||
| "@ot-builder/ot-glyphs": "1.7.4", | ||
| "@ot-builder/ot-metadata": "1.7.4", | ||
| "@ot-builder/prelude": "1.7.4", | ||
| "@ot-builder/primitive": "1.7.4", | ||
| "@ot-builder/stat-glyphs": "1.7.4", | ||
| "@ot-builder/var-store": "1.7.4", | ||
| "@ot-builder/variance": "1.7.4", | ||
| "tslib": "^2.6.3" | ||
| }, | ||
| "devDependencies": { | ||
| "@ot-builder/ot-sfnt": "1.7.3", | ||
| "@ot-builder/io-bin-metadata": "1.7.3", | ||
| "@ot-builder/io-bin-sfnt": "1.7.3", | ||
| "@ot-builder/test-util": "1.7.3", | ||
| "@types/jest": "^29.5.5", | ||
| "jest": "^29.6.2" | ||
| "@ot-builder/ot-sfnt": "1.7.4", | ||
| "@ot-builder/io-bin-metadata": "1.7.4", | ||
| "@ot-builder/io-bin-sfnt": "1.7.4", | ||
| "@ot-builder/test-util": "1.7.4", | ||
| "@types/jest": "^29.5.12", | ||
| "jest": "^29.7.0" | ||
| } | ||
| } |
227083
-0.2%5552
-0.16%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated