Is there a way to customize a text sprite beyond just changing its size and font, as demonstrated in the example?
{
type: "text",
text: "Hello, Sprite!",
fill: "green",
font: "18px monospace"
}
In particular, I'm looking to make it bold or underlined.
I attempted using a style
config like this:
style: {
'text-decoration': 'underline'
}
Another approach was trying to set it within the font config like so:
font: "underline 18px monospace"
Unfortunately, neither of these methods yielded the desired result.
This statement from the Ext.draw.Sprite#font
configuration in the documentation seemed promising but proved somewhat confusing:
Uses the same syntax as the CSS font parameter
I've searched online for information on the CSS font parameter with limited success. If anyone can clarify what this means, it would be greatly appreciated.