#mahad852 - Payment Element Font
1 messages ยท Page 1 of 1 (latest)
Hi ๐
The fonts array is actually passed as part of the options object when you instantiate your elements.
https://stripe.com/docs/js/elements_object/create#stripe_elements-options-fonts
thats what I am doing
Wait...which is right where the appearance API is loaded..yeah
https://www.postermywall.com/assets/fonts/NunitoSans/NunitoSans-Regular.woff2
we store the woff2 file for the font on our server
Ah, okay. Do you see any console warnings related to loading that content?
๐ค
apparently fonts is an option separate from appearance...https://stripe.com/docs/js/elements_object/create#stripe_elements-options-fonts
my two brain cells assumed it was a part of the appearance object ๐
That's the doc I linked above which I missed too...so good on us ๐
should have checked the console properly for warnings. Thanks a bunch tho!
Sure! Happy to help ๐