You can set a list of fonts to use and the browser will keep trying until it finds one that is installed. Usually the last one in your list is serif or sans-serif that always works.
if (!isFontAvailable(font)) {
downloadFont(font);
}
It's not like a tracking script is going to try to iterate over every single existing font out in the wild for finger printing purposes. Doing so would be too easy to detect and block at the browser level. In the meanwhile, a script can get the list of fonts directly.