@takumi-rs/wasm 2.15.2 → 2.16.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.
package/dist/export.d.cts CHANGED
@@ -165,16 +165,13 @@ type FontDetails = {
165
165
  weight?: number;
166
166
  style?: "normal" | "italic" | "oblique" | `oblique ${number}deg` | (string & {});
167
167
  /**
168
- * Logical family this font is a coverage subset of. Subsets sharing a `subsetOf` are
169
- * kept as distinct families and `font-family: {subsetOf}` expands to all of them, so each
170
- * script routes to the subset that covers it. Set by {@link loadGoogleFonts}.
168
+ * Inclusive codepoint ranges the font serves, as `@font-face` `unicode-range`. Register each
169
+ * subset of a family under the same `name` with its own ranges.
171
170
  */
171
+ unicodeRange?: [number, number][];
172
+ /** @deprecated Register under `name` with `unicodeRange` instead. */
172
173
  subsetOf?: string;
173
- /**
174
- * Where this subset sits in its group's fallback order; lowest is tried first, and equal
175
- * ranks order by family name. A subset's `cmap` reaches past the range it was cut for, so
176
- * the rank is what settles which subset serves a codepoint several of them encode.
177
- */
174
+ /** @deprecated Ignored; `unicodeRange` decides which subset serves a codepoint. */
178
175
  subsetRank?: number;
179
176
  /**
180
177
  * CSS generic family keyword this font resolves for, so stacks ending in e.g.
package/dist/export.d.mts CHANGED
@@ -165,16 +165,13 @@ type FontDetails = {
165
165
  weight?: number;
166
166
  style?: "normal" | "italic" | "oblique" | `oblique ${number}deg` | (string & {});
167
167
  /**
168
- * Logical family this font is a coverage subset of. Subsets sharing a `subsetOf` are
169
- * kept as distinct families and `font-family: {subsetOf}` expands to all of them, so each
170
- * script routes to the subset that covers it. Set by {@link loadGoogleFonts}.
168
+ * Inclusive codepoint ranges the font serves, as `@font-face` `unicode-range`. Register each
169
+ * subset of a family under the same `name` with its own ranges.
171
170
  */
171
+ unicodeRange?: [number, number][];
172
+ /** @deprecated Register under `name` with `unicodeRange` instead. */
172
173
  subsetOf?: string;
173
- /**
174
- * Where this subset sits in its group's fallback order; lowest is tried first, and equal
175
- * ranks order by family name. A subset's `cmap` reaches past the range it was cut for, so
176
- * the rank is what settles which subset serves a codepoint several of them encode.
177
- */
174
+ /** @deprecated Ignored; `unicodeRange` decides which subset serves a codepoint. */
178
175
  subsetRank?: number;
179
176
  /**
180
177
  * CSS generic family keyword this font resolves for, so stacks ending in e.g.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takumi-rs/wasm",
3
- "version": "2.15.2",
3
+ "version": "2.16.1",
4
4
  "description": "Render OG images from Takumi node trees with WebAssembly. No headless browser.",
5
5
  "keywords": [
6
6
  "cloudflare-workers",
@@ -154,7 +154,7 @@
154
154
  "publish-lint": "attw --pack . && publint --strict ."
155
155
  },
156
156
  "dependencies": {
157
- "@takumi-rs/helpers": "2.15.2"
157
+ "@takumi-rs/helpers": "2.16.1"
158
158
  },
159
159
  "devDependencies": {
160
160
  "@types/bun": "^1.4.1",
Binary file