What if you tried setting tfLabelBold.bold = true?
Double check that fontReg.fontName != fontBold.fontName.
Try changing the color rather than the font: var tfLabelBlue = new TextFormat(fontReg.fontName, 36, 0x0000FF).
Do you need to update OpenFL or Lime?
If you’re already running the latest versions, try running this in OpenFL 3.3.3 and Lime 2.6.2. (Because OpenFL 3.3.4 changed something about text fields.)
Yes, I had tried using the .bold attribute - all the text is applied the format, regardless of the beginIndex and endIndex parameters. Same thing happens when trying to change colours that way. As I mentioned on the original post, loading .htmlText with <font color=''> seems to work to change only part of the content, but <b> and <i> do not - in this case, the tags will show up as text.
Now, how to run a project in a different Lime/OpenFL version? I couldn’t find anything in the official documentation or Google.
Ah. Nice catch. I could also see that when it comes to HTML tags there’s only a crude search for the tag and only font, size and color are implemented.
Thanks for confirming I should stop pursuing this.