fontaine 0.8.2 → 1.0.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/README.md +5 -5
- package/dist/capsize-font-metrics.mjs +1 -1
- package/dist/index.cjs +8 -10
- package/dist/index.d.cts +11 -10
- package/dist/index.d.mts +11 -10
- package/dist/index.mjs +6 -8
- package/dist/{metrics-ChAPPk2j.cjs → metrics-DjL28VHB.cjs} +22 -17
- package/dist/{metrics-DgPzfV2U.mjs → metrics-R5FQ6W30.mjs} +21 -16
- package/dist/postcss.cjs +2 -3
- package/dist/postcss.d.cts +4 -4
- package/dist/postcss.d.mts +4 -4
- package/dist/postcss.mjs +2 -3
- package/package.json +10 -12
package/README.md
CHANGED
|
@@ -53,7 +53,7 @@ import { defineConfig } from 'astro/config'
|
|
|
53
53
|
|
|
54
54
|
const options = {
|
|
55
55
|
// You can specify fallbacks as an array (applies to all fonts)
|
|
56
|
-
fallbacks: ['
|
|
56
|
+
fallbacks: ['Segoe UI', 'Helvetica Neue', 'Arial', 'Noto Sans'],
|
|
57
57
|
|
|
58
58
|
// Or as an object to configure specific fallbacks per font family
|
|
59
59
|
// fallbacks: {
|
|
@@ -146,7 +146,7 @@ For these setups, use the PostCSS plugin instead. It runs over fully-compiled CS
|
|
|
146
146
|
module.exports = {
|
|
147
147
|
plugins: [
|
|
148
148
|
require('fontaine/postcss')({
|
|
149
|
-
fallbacks: ['
|
|
149
|
+
fallbacks: ['Segoe UI', 'Helvetica Neue', 'Arial', 'Noto Sans'],
|
|
150
150
|
}),
|
|
151
151
|
// ...any other plugins, such as autoprefixer or cssnano
|
|
152
152
|
],
|
|
@@ -183,7 +183,7 @@ const options = {
|
|
|
183
183
|
|
|
184
184
|
### Default Category Fallbacks
|
|
185
185
|
|
|
186
|
-
- **sans-serif**: `
|
|
186
|
+
- **sans-serif**: `Segoe UI`, `Helvetica Neue`, `Arial`, `Noto Sans`
|
|
187
187
|
- **serif**: `Times New Roman`, `Georgia`, `Noto Serif`
|
|
188
188
|
- **monospace**: `Courier New`, `Roboto Mono`, `Noto Sans Mono`
|
|
189
189
|
- **display** & **handwriting**: Same as sans-serif
|
|
@@ -229,8 +229,8 @@ Example:
|
|
|
229
229
|
/* This additional font-face declaration will be added to your CSS. */
|
|
230
230
|
@font-face {
|
|
231
231
|
font-family: 'Roboto fallback';
|
|
232
|
-
src: local('
|
|
233
|
-
local('
|
|
232
|
+
src: local('Segoe UI'), local('Helvetica Neue'), local('Arial'),
|
|
233
|
+
local('Noto Sans');
|
|
234
234
|
ascent-override: 92.7734375%;
|
|
235
235
|
descent-override: 24.4140625%;
|
|
236
236
|
line-gap-override: 0%;
|