is fixedFontFamily valid
Unanswered
Hällefors Elkhound posted this in #help-forum
Hällefors ElkhoundOP
I saw a thread in github https://github.com/vercel/next.js/pull/53608. Seems fixedFontFamily is merged but there is no mention of this feature in docs. Why?
2 Replies
@Hällefors Elkhound I saw a thread in github https://github.com/vercel/next.js/pull/53608. Seems fixedFontFamily is merged but there is no mention of this feature in docs. Why?
i feel the description of the PR is quite misleading because if you search the diff in the PR,
BUT: the code there is still active. now if you use
the font name will be
that being said since it's not mentioned in the documentation (weird...), i must tell you that the principle of semver means this is not covered under semver and any version upgrades may break this
fixedFontFamily
doesn't exist...BUT: the code there is still active. now if you use
export const mono = Space_Mono({
subsets: ['latin'],
weight: ['400'],
variable: '--mono',
});
the font name will be
Space Mono
(and Space Mono Fallback
), which are stable and you can use inside your css code and other places.that being said since it's not mentioned in the documentation (weird...), i must tell you that the principle of semver means this is not covered under semver and any version upgrades may break this
Roseate Spoonbill
Looking at source code of next/font, I don't think this feature (
fixedFontFamily
) exits as an option you can provide to one of the fonts or google fonts.