Is there a way to detect if a (synthatically correct) HTML rendered in a JLabel has rendered succesfully, and is displaying all intended Glyph(s)
I have the following HTML String:
<html><h3>Title</h3><ul><li><b>S</b>tuff</li><li><b>S</b>taff</li><li><b>S</b>tiff</li></ul></html>
That renders:
However, in an application, the same HTML inside a JLabel rendered as:
As it can be seen, nothing is bold
, my custom HTML parser can check for HTML issues
, and it detects that String as correct, it then parses "correctly", and renders the Glyph(s), however, the bold
Glyph(s) are being replaced by their default plain
Glyph(s).
Is there a way to programatically detect that the Glyph was not used, and search for the Glyph, and replace it?
Also worth noticing:
JLabel text by default is already bold. You cannot double bold it, you can only unbold it and rebold it.
Try:
<html><body style="font-weight: normal"><h3>Title</h3><ul><li><b>S</b>tuff</li><li><b>S</b>taff</li><li><b>S</b>tiff</li></ul></body></html>