restty 0.1.17 → 0.1.18
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 +4 -9
- package/dist/{app/index.js → chunk-53vdvhe3.js} +23781 -23698
- package/dist/fonts/manager.d.ts +1 -2
- package/dist/internal.js +105 -56357
- package/dist/renderer/shapes.d.ts +1 -3
- package/dist/restty.js +20 -0
- package/dist/unicode/ghostty-symbol-ranges.d.ts +1 -0
- package/dist/unicode/symbols.d.ts +6 -0
- package/package.json +8 -61
- package/dist/fonts/index.js +0 -5333
- package/dist/grid/index.js +0 -71
- package/dist/ime/index.js +0 -84
- package/dist/index.js +0 -56354
- package/dist/input/index.js +0 -1051
- package/dist/pty/index.js +0 -338
- package/dist/renderer/index.js +0 -1715
- package/dist/selection/index.js +0 -226
- package/dist/theme/index.js +0 -11218
- package/dist/wasm/index.js +0 -6003
package/dist/fonts/manager.d.ts
CHANGED
|
@@ -25,8 +25,7 @@ export declare function fontAdvanceUnits(entry: FontEntry, shapeClusterWithFont:
|
|
|
25
25
|
export declare function glyphWidthUnits(entry: FontEntry, glyphId: number | undefined | null): number;
|
|
26
26
|
/**
|
|
27
27
|
* Select the best font index from the manager's font list for rendering the
|
|
28
|
-
* given text cluster,
|
|
29
|
-
* scoring candidates by advance-width ratio fit.
|
|
28
|
+
* given text cluster, searching in fallback order similar to Ghostty.
|
|
30
29
|
*/
|
|
31
30
|
export declare function pickFontIndexForText(state: FontManagerState, text: string, expectedSpan: number, shapeClusterWithFont: (entry: FontEntry, text: string) => ShapedCluster): number;
|
|
32
31
|
/** Fetch a font file from a URL and return its ArrayBuffer, or null on failure. */
|