#pmcneil7962
1 messages · Page 1 of 1 (latest)
Good question. Checking in to this
Our docs say the URL needs to be to a font in a .woff , .otf, or .svg format https://stripe.com/docs/js/appendix/custom_font_source_object#custom_font_source_object-src
yeah, i saw that too but i assumed it was okay to use .tff since it said: This is usually (though not always) a link to a file with a .woff , .otf, or .svg suffix.
Whoops I was bouncing between threads did not read that carefully. I will double check if tiff is supported. I do know it is a common format
ya i can try a different format, if you think it is recommended - if so, what type
Can you try with a file that is one of those three types?
yeah i will try that
Didn't find a doc but I have found users online that have reported success with the ttf format https://stackoverflow.com/a/43825639/16458642
Using this as reference
https://stripe.com/docs/elements/reference#stripe-elements
I'm trying create a custom font src to pass to my stripe elements:
var elements = stripe.elements(
{
...
Have you checked your dev console to see if the network request to get the file is failing?
maybe im missing format("truetype")
i have not been able to locate any failing calls but did not look too deep. i will try these suggestions, thank you
any way to leave this thread open though, or is there a way to reopen it
Yes can leave it open. Let me know how those tweaks go, I can consult my colleagues if those do not work