RichText.SetText()
I'm trying to use the RichText extension in code. Could you please advise of the correct approach and/or update the documentation?
https://www.noesisengine.com/docs/App.A ... hText.html
Thank you!
https://www.noesisengine.com/docs/App.A ... hText.html
Code: Select all
TextBlock a = new TextBlock();
RichText.SetText(a, "[b]Hello[/b] World");
Re: RichText.SetText()
Should this be working, or is there no programmatic API surface area?
Thanks,
Shaun
Thanks,
Shaun
Re: RichText.SetText()
Your code appears to be correct. Could you confirm if the font you’re using includes glyphs for bold?
Re: RichText.SetText()
This seems like user error on my part. If I have two fonts that specify the same font family, but different weight, is Noesis able to switch between them when bold font weight is selected?




-
-
sfernandez
Site Admin
- Posts: 3363
- Joined:
Re: RichText.SetText()
Yes, it should, you can try it in a simple TextBlock without using RichText to verify it.
Who is online
Users browsing this forum: No registered users and 2 guests