text-shaper 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +413 -39
- package/dist/buffer/glyph-buffer.d.ts +2 -2
- package/dist/font/brotli/decode.d.ts +42 -0
- package/dist/font/tables/cff2.d.ts +63 -0
- package/dist/font/tables/gpos.d.ts +15 -0
- package/dist/font/tables/gsub.d.ts +9 -0
- package/dist/index.js +6 -8
- package/dist/raster/msdf.d.ts +12 -0
- package/dist/shaper/shaper.d.ts +128 -1
- package/package.json +2 -2
- package/dist/index.js.map +0 -134
- package/dist/index.test.d.ts +0 -1
- package/dist/perf/benchmark-runner-eksh2b26.js +0 -0
- package/dist/perf/benchmark-runner.html +0 -517
- package/dist/perf/comparison-tests.js +0 -22676
- package/dist/perf/comparison-tests.js.map +0 -111
- package/dist/perf/cpu/cpu-perf.js +0 -21920
- package/dist/perf/cpu/cpu-perf.js.map +0 -108
- package/dist/perf/gpu/webgl-perf.js +0 -470
- package/dist/perf/gpu/webgl-perf.js.map +0 -11
- package/dist/perf/gpu/webgpu-perf.js +0 -442
- package/dist/perf/gpu/webgpu-perf.js.map +0 -11
- package/dist/perf/index.html +0 -258
- package/dist/perf/module-loader.js +0 -18
- package/dist/perf/utils/perf-utils.js +0 -170
- package/dist/perf/utils/perf-utils.js.map +0 -10
- package/dist/typeshaper.js +0 -7
- package/dist/unicode/bidi/brackets.data.d.ts +0 -5
- package/dist/unicode/bidi/char-types.data.d.ts +0 -25
- package/dist/unicode/bidi/mirroring.data.d.ts +0 -2
|
@@ -103,6 +103,11 @@ export interface GsubTable {
|
|
|
103
103
|
}
|
|
104
104
|
export type { SequenceLookupRecord } from "./gsub-contextual.ts";
|
|
105
105
|
export declare function parseGsub(reader: Reader): GsubTable;
|
|
106
|
+
declare function parseGsubLookup(reader: Reader, _lookupListReader: Reader, _lookupOffset: number): AnyGsubLookup | null;
|
|
107
|
+
declare function parseExtensionLookup(reader: Reader, subtableOffsets: number[], baseProps: {
|
|
108
|
+
flag: uint16;
|
|
109
|
+
markFilteringSet?: uint16;
|
|
110
|
+
}): AnyGsubLookup | null;
|
|
106
111
|
export declare function applySingleSubst(lookup: SingleSubstLookup, glyphId: GlyphId): GlyphId | null;
|
|
107
112
|
export declare function applyLigatureSubst(lookup: LigatureSubstLookup, glyphIds: GlyphId[], startIndex: number): {
|
|
108
113
|
ligatureGlyph: GlyphId;
|
|
@@ -116,3 +121,7 @@ export declare function applyLigatureSubstDirect(lookup: LigatureSubstLookup, gl
|
|
|
116
121
|
ligatureGlyph: GlyphId;
|
|
117
122
|
consumed: number;
|
|
118
123
|
} | null;
|
|
124
|
+
export declare const __testing: {
|
|
125
|
+
parseGsubLookup: typeof parseGsubLookup;
|
|
126
|
+
parseExtensionLookup: typeof parseExtensionLookup;
|
|
127
|
+
};
|