ttfquery.guessdescription

Heuristic attempting to extract descriptions from font names
This should only be used as a backup in case there is no proper available querying mechanism (i.e. fonttools), and even then, we really would rather avoid using this extremely fragile mechanism.
Basically what happens is that a name compression function is run over the font name, as seen in the Windows Registry, producing a base name and a set of modifiers, with the modifiers being the weight (as a string) and a flag indicating whether the font appears to be italicised.
XXX This is English-specific and entirely dependent on the naming conventions commonly seen when naming fonts, so there will be a considerable number of cases where the resulting name and flags will be incorrect.

Functions