majid-amiri/react-client-captcha

fontFamily - On first load captcha generated with default font

Opened this issue · 0 comments

When using custom font like google font, on first load captcha generated with default font and not with the custom one.

On the screenshot both captcha and H1 have same font family but only H1 use the right font.
After click on retry or page reload the the captcha will generate with the right font.

Before retry:

image

After retry:
image

https://codesandbox.io/s/sweet-alex-l71ie?file=/src/App.js:172-182