text-shaper 0.1.7 → 0.1.8
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/dist/env.d.ts +1 -0
- package/dist/hinting/programs.d.ts +4 -0
- package/dist/hinting/scale.d.ts +6 -0
- package/dist/hinting/types.d.ts +4 -3
- package/dist/index.js +9 -9
- package/package.json +1 -1
package/dist/env.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const env: NodeJS.ProcessEnv | undefined;
|
|
@@ -15,6 +15,10 @@ export interface HintingEngine {
|
|
|
15
15
|
ctx: ExecContext;
|
|
16
16
|
/** Units per EM from font */
|
|
17
17
|
unitsPerEM: number;
|
|
18
|
+
/** Original CVT values in font units */
|
|
19
|
+
cvtOriginal?: Int32Array;
|
|
20
|
+
/** Scaled CVT baseline after prep */
|
|
21
|
+
cvtBase?: Int32Array;
|
|
18
22
|
/** Has fpgm been executed */
|
|
19
23
|
fpgmExecuted: boolean;
|
|
20
24
|
/** Current ppem (prep needs re-run if this changes) */
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fixed-point scaling helpers (match FreeType rounding behavior).
|
|
3
|
+
*/
|
|
4
|
+
export declare function mulFix(value: number, scaleFix: number): number;
|
|
5
|
+
export declare function divFix(value: number, divisor: number): number;
|
|
6
|
+
export declare function scaleFUnits(value: number, scaleFix: number): number;
|
package/dist/hinting/types.d.ts
CHANGED
|
@@ -42,9 +42,9 @@ export declare enum RoundMode {
|
|
|
42
42
|
* Touch flags for points
|
|
43
43
|
*/
|
|
44
44
|
export declare enum TouchFlag {
|
|
45
|
-
X =
|
|
46
|
-
Y =
|
|
47
|
-
Both =
|
|
45
|
+
X = 16,
|
|
46
|
+
Y = 32,
|
|
47
|
+
Both = 48
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* Glyph zone - holds glyph points
|
|
@@ -189,6 +189,7 @@ export interface ExecContext {
|
|
|
189
189
|
ppem: number;
|
|
190
190
|
pointSize: number;
|
|
191
191
|
scale: number;
|
|
192
|
+
scaleFix: number;
|
|
192
193
|
error: string | null;
|
|
193
194
|
instructionCount: number;
|
|
194
195
|
maxInstructions: number;
|