2025-10-15 8:36 AM
I want to change the font at runtime for a TextAreaWithOneWildcard.
I figured it would be as simple as:
1. update the text in the wildcard buffer (previously set by calling setWildcardTextArea)
2. call setTypedText( id ) where 'id' is a designer defined text entry that uses the predefined font I want to use (different to the one used for the TextArea in the designer)
3. call invalidate()
It seems that the string associated with the 'id' text entry takes precedence over the string I update in the wildcard buffer. I've tried calling in a different order with no success. Is this by design or a bug?
I've seen a suggested workaround that uses multiple languages to define the same string but with different fonts. My application is multi-lingual so that's not an option.
Why doesn't TextArea have support for selecting a font that is already defined in the application or am I missing something?
Thanks