@cssints/fonts 0.5.2 → 0.6.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/index.d.mts +1 -2
- package/dist/index.mjs +1 -2
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/index.d.ts
|
|
2
1
|
/** What the fallback face and `trim()` are computed from, in font units (capsize's names). */
|
|
3
2
|
export interface Metrics {
|
|
4
3
|
ascent: number;
|
|
@@ -93,4 +92,4 @@ export declare const font: (family: string, options: Options) => import("cssints
|
|
|
93
92
|
readonly uses: readonly ["native", "capsize"];
|
|
94
93
|
};
|
|
95
94
|
}>;
|
|
96
|
-
|
|
95
|
+
export {};
|
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { readFileSync, statSync } from "node:fs";
|
|
|
3
3
|
import { dirname, extname, join, resolve } from "node:path";
|
|
4
4
|
import { create } from "fontkitten";
|
|
5
5
|
import { dependsOn, scope } from "cssints/plugin";
|
|
6
|
-
|
|
6
|
+
// src/index.ts
|
|
7
7
|
const FALLBACKS = {
|
|
8
8
|
"sans-serif": {
|
|
9
9
|
locals: [
|
|
@@ -285,5 +285,4 @@ const font = (family, options) => {
|
|
|
285
285
|
const fallback = options.fallback ?? source.category;
|
|
286
286
|
return fonts(family, fallback, source, [...source.faces.map((f) => ({ css: faceRule(family, f) })), { css: fallbackFace(`${family} Fallback`, source.metrics, fallback) }]);
|
|
287
287
|
};
|
|
288
|
-
//#endregion
|
|
289
288
|
export { font };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cssints/fonts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Fonts for cssints: @font-face rules with a metric-matched fallback face, and cap-height trimming",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"fontkitten": "^1.0.3"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"cssints": "^0.
|
|
27
|
+
"cssints": "^0.6.0"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
30
30
|
"node": ">=22"
|