Failed to execute 'check' on 'FontFaceSet': Could not resolve '' as a font.
See original GitHub issuedocument.fonts.check() gives of an error for controlled component when value is empty
<DatePicker
value={date} // date=""
clearIcon={null}
onChange={x => handleChange({ target: { name: "date", value: x } })}
/>;
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:11 (4 by maintainers)
Top Results From Across the Web
React - How to check if a specific font-face has been loaded?
I have solved my problem in a project with React + Vite doing this: First, install the package npm install use-font-face-observer.
Read more >FontFaceSet.check() - Web APIs - MDN Web Docs
The check() method of the FontFaceSet returns whether all fonts in the given font list have been loaded and are available.
Read more >document.fonts.check return 'false' for invalid font names
If no fonts are found, step 3 requires us to *throw an error*. We only get to return true/false if we've found at...
Read more >Solved: PBI Desktop Visualization Errors
Failed to execute 'check' on 'FontFaceSet': Could not resolve '16px Segoe UI (Bold)' as a font. Error Message: An error occurred while rendering...
Read more >CSS Font Loading API's FontFaceSet Sample - GitHub Pages
It's used to load font faces, and check the status of previously requested fonts. The FontFaceSet interface for the current HTML page is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks like
normal
andsmall-caps
are the only allowed values offont-variant
in CSSfont
shorthand property. So, there’s no way to applyfont-variant-numeric: tabular-nums
on canvas to measure the text. I fixed this issue in update-input-width library in https://github.com/wojtekmaj/update-input-width/commit/ce128a5498e277f9baed8d52dd3d65f71be899ee.we’re seeing this error:
It seems to be related to the
tabular-nums
property. Uncommenting it in our styles fixed the problem.