in a project of mine I use temporarilyInstallFonts (from WFS), and it works all right for all controls except Listbox and Canvas.
In such cases (Listbox and canvas) Xojo uses the System font.
See Feedback Case #55423
Since I do not know when the bug will be fixed, and since the issue affects only Listboxes and canvases, I was thinking of a way to retrieve the "real" listbox.textfont in order to apply some workaround. For instance:
if myListbox.textfont = myCustomFont then
//do something else
Unfortunately this snippet, for myListbox.textfont, always returns "myCustomFont" even if actually theListbox shows the text using System font.
So, is there any other way to know the really-used textFont of a Listbox?
No plugins, please.
Suggestions welcome. Thank you.