フォント最適化、subsets: [""] とは #81
Replies: 5 comments 10 replies
-
https://nextjs.org/docs/pages/api-reference/components/font#subsets
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Preloading If it's a unique page, it is preloaded on the unique route for that page. |
Beta Was this translation helpful? Give feedback.
-
https://nextjs.org/docs/messages/google-fonts-missing-subsets |
Beta Was this translation helpful? Give feedback.
-
node_modulesの中身を見てみたnode_modules/next/dist/compiled/@next/font/dist/google/index.d.ts T extends undefined ? NextFont : NextFontWithVariable;
export declare function Noto_Sans_JP<T extends CssVariable | undefined = undefined>(options?: {
weight?: '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | 'variable' | Array<'100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900'>;
style?: 'normal' | Array<'normal'>;
display?: Display;
variable?: T;
preload?: boolean;
fallback?: string[];
adjustFontFallback?: boolean;
subsets?: Array<'cyrillic' | 'latin' | 'latin-ext' | 'vietnamese'>;
}): |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
フォントがサポートする文字セットを指定するための記述 (byGPT)そもそもちょっとNext.jsとの定義とは違うかもBeta Was this translation helpful? Give feedback.
All reactions