I'm trying to check if certain font is loaded with the FontFaceSet#check() API but it always returns true to me, no matter what random stuff I put.
I tried in both Chrome and Safari, with the same result.
Here are the results in my console:

Am I using this API wrongly?
I tried to google this issue and the API usage without any luck.
I expected document.fonts.check() would false if the font doesn't exist / is not loaded.
This is indeed the expected behavior,
FontFaceSetcannot be used to determine if a font is available or not.The description from the MDN article you linked to says
And that's all it does: It will tell you if when rendering the text the browser will have to load one of the fonts that are already registered in the
FontFaceSetor not.In the case of font-families that haven't been registered in the
FontFaceSet, the browser will not load any new font because that font doesn't exists to begin with, and thus.check()will returntrue.The MDN article even has a paragraph about that: