Commit e38a9a2 1 parent 18b71e6 commit e38a9a2 Copy full SHA for e38a9a2
File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ const options = {
54
54
resolvePath : (id ) => ' file:///path/to/public/dir' + id,
55
55
// overrideName: (originalName) => `${name} override`
56
56
// sourcemap: false
57
- // skipFontFaceGeneration: (fontFamily ) => fontFamily === 'Roboto'
57
+ // skipFontFaceGeneration: (fallbackName ) => fallbackName === 'Roboto override '
58
58
}
59
59
60
60
// Vite
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export interface FontaineTransformOptions {
17
17
css ?: { value ?: string }
18
18
fallbacks : string [ ]
19
19
resolvePath ?: ( path : string ) => string | URL
20
- skipFontFaceGeneration ?: ( name : string ) => boolean
20
+ skipFontFaceGeneration ?: ( fallbackName : string ) => boolean
21
21
/** this should produce an unquoted font family name */
22
22
fallbackName ?: ( name : string ) => string
23
23
/** @deprecated use fallbackName */
@@ -66,7 +66,7 @@ export const FontaineTransform = createUnplugin(
66
66
for ( const { family, source } of parseFontFace ( matchContent ) ) {
67
67
if ( ! family ) continue
68
68
if ( ! supportedExtensions . some ( e => source ?. endsWith ( e ) ) ) continue
69
- if ( skipFontFaceGeneration ( family ) ) continue
69
+ if ( skipFontFaceGeneration ( fallbackName ( family ) ) ) continue
70
70
71
71
const metrics =
72
72
( await getMetricsForFamily ( family ) ) ||
You can’t perform that action at this time.
0 commit comments