mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This change is causing double font loading due to CSS loading without a `dpl` while they are preloaded with a `dpl` param. Reverting until a proper fix can be implemented. Reverts: - #82384 - #82488
31 lines
634 B
TypeScript
31 lines
634 B
TypeScript
export type AdjustFontFallback = {
|
|
fallbackFont: string
|
|
ascentOverride?: string
|
|
descentOverride?: string
|
|
lineGapOverride?: string
|
|
sizeAdjust?: string
|
|
}
|
|
|
|
export type FontLoader = (options: {
|
|
functionName: string
|
|
variableName: string
|
|
data: any[]
|
|
emitFontFile: (
|
|
content: Buffer,
|
|
ext: string,
|
|
preload: boolean,
|
|
isUsingSizeAdjust?: boolean
|
|
) => string
|
|
resolve: (src: string) => string
|
|
isDev: boolean
|
|
isServer: boolean
|
|
loaderContext: any
|
|
}) => Promise<{
|
|
css: string
|
|
fallbackFonts?: string[]
|
|
variable?: string
|
|
adjustFontFallback?: AdjustFontFallback
|
|
weight?: string
|
|
style?: string
|
|
}>
|