#geordi-fonts
1 messages · Page 1 of 1 (latest)
Do you know where I could download that font to try and repro it on my end? Alternatively, do you have a live site I could look at that shows the error?
Something like this: https://github.com/bchiang7/v3/blob/master/fonts/apercu/Apercu-Medium.woff2
Otherwise I'll try use the elements default font? If you have that?
I'm not 100% sure if elements has a "default font" but let me check
cheers
I forgot to ask for this earlier - but can you show the exact code you're using as well?
geordi-fonts
clientSecret: process.env.STRIPE_SECRET_KEY,
appearance,
fonts: [
{
src: "local(/public/fonts/ApercuPro-Regular.woff2)",
family: "ApercuPro-Regular",
style: "normal",
},
],
};````
theme: "none",
variables: {
colorPrimary: "#0570de",
colorBackground: "#ffffff",
colorDanger: "#df1b41",
fontFamily: "ApercuPro-Regular, system-ui, sans-serif",
spacingUnit: "4px",
borderRadius: "4px",
spacingGridRow: "8px",
},
};````
Looks right you think?
I use the font elsewhere in the app, just can't crack it with this
Yeah it looks correct to me, but I get the same error you do on my end - let me try and see what could be wrong
Thanks!
Any luck?
Not so far - I can't pinpoint what specifically is wrong with it so I'm trying a couple of different approaches
Cool, thanks - thought it may be a bug as its so new
How familiar are you with using local / have you used it before? Is there a reason you're using local and not url?
I believe the idea with local is that it'll check the fonts that are downloaded on your actual computer - so if you did somethign like src: "local(Apercu Pro Regular)" it'll use the Apercu Pro Regular font if it has been download onto that computer
What you probably want is something like src: 'local("Apercu Pro Regular"), local("Apercu Pro Regular"), url(/public/fonts/ApercuPro-Regular.woff2)',
^^ This means that if the Apercu Pro Regular font is installed on the computer, otherwise we'll pull it from the url path