@fontmin-rs/wasm 1.0.1 → 1.0.2-rc.1
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.
|
Binary file
|
package/dist/index.d.mts
CHANGED
|
@@ -51,10 +51,14 @@ interface FontInfo {
|
|
|
51
51
|
size: number;
|
|
52
52
|
}
|
|
53
53
|
interface SubsetOptions extends CoverageOptions {
|
|
54
|
+
/** Retain the original glyph-zero outline; false emits the required empty glyph-zero slot. */
|
|
54
55
|
keepNotdef?: boolean;
|
|
56
|
+
/** Drop layout, remap supported data, or reject known contextual loss. */
|
|
55
57
|
layout?: LayoutSubsetMode;
|
|
56
58
|
missingGlyphs?: MissingGlyphPolicy;
|
|
59
|
+
/** Retain the cvt, fpgm, and prep TrueType program tables while trimming. */
|
|
57
60
|
preserveHinting?: boolean;
|
|
61
|
+
/** Skip subsetting and return the validated source bytes unchanged when false. */
|
|
58
62
|
trim?: boolean;
|
|
59
63
|
}
|
|
60
64
|
interface WoffOptions {
|
|
@@ -73,10 +77,12 @@ interface Ttf2SvgOptions {
|
|
|
73
77
|
fontFamily?: string;
|
|
74
78
|
}
|
|
75
79
|
interface Otf2TtfOptions {
|
|
80
|
+
/** Compatibility option: Type 2 hinting cannot be translated to TrueType and is discarded. */
|
|
76
81
|
preserveHinting?: boolean;
|
|
77
82
|
variationCoordinates?: Record<string, number>;
|
|
78
83
|
}
|
|
79
84
|
interface Svg2TtfOptions {
|
|
85
|
+
/** Compatibility option accepted without generating TrueType hint instructions. */
|
|
80
86
|
hinting?: boolean;
|
|
81
87
|
normalize?: boolean;
|
|
82
88
|
}
|