#geordi-fonts

1 messages · Page 1 of 1 (latest)

olive willowBOT
candid shore
#

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?

wise estuary
#

Otherwise I'll try use the elements default font? If you have that?

candid shore
#

I'm not 100% sure if elements has a "default font" but let me check

wise estuary
#

cheers

candid shore
#

I forgot to ask for this earlier - but can you show the exact code you're using as well?

#

geordi-fonts

wise estuary
#
    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

candid shore
#

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

wise estuary
#

Thanks!

wise estuary
#

Any luck?

candid shore
#

Not so far - I can't pinpoint what specifically is wrong with it so I'm trying a couple of different approaches

wise estuary
#

Cool, thanks - thought it may be a bug as its so new

candid shore
#

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