TrueType fonts not displaying

I have an app with a listbox that lists installed system and user fonts. When a font name is selected in the listbox the text in a textfield changes to the the selected font. I have noticed that this does not work if a TrueType font is selected in the listbox. Instead of the text in the textfield changing to the selected font it is rendered as the default system font.

Is there something about the way Xojo handles TrueType fonts that is causing this problem?

Please ignore the above. I have figured it out.

Wrong FontName ?

Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.