Search code examples
javascripthtmlcssfonts

How to check if the font has a symbol


I have the following css rule in my document

font-family: "Trebuchet MS", Tahoma;

but I found out that some browsers have Trebuchet MS font
without symbols I need (some language with non-latin characters).
And in this case browser shows squares instead of symbols.

How can I check it (probably via javascript)?
(i.e. how can I check if some symbols are missing in the
font installed in my visitor's browser)


Solution

  • As far as I know, you can't check individual symbols, but you can check the encoding.