I have been attempting to use HTML supported tags as enumerated in the documentation. However, when using the HTML size tagging:
eg. <font face='verdana' color='#000000' size=3.5></font>
the documentation fails to state that only discrete sizes are allowed as written in the html parser source code. Thus, when size values are entered that are not
1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 6, 6.5, 7 a key error occurs:
eg. <font face='verdana' color='#000000' size=3.6></font> Results in a key error.
I am unsure if this is intended, but I only realized that only discrete values are accepted after looking at the source code. More explicit value handling would be helpful.
Version:
pygame 2.1.0 (SDL 2.0.16, Python 3.9.9) pygame_gui is 0.6.0
I have been attempting to use HTML supported tags as enumerated in the documentation. However, when using the HTML size tagging: eg.
<font face='verdana' color='#000000' size=3.5></font>
the documentation fails to state that only discrete sizes are allowed as written in the html parser source code. Thus, when size values are entered that are not1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 5.5, 6, 6.5, 7
a key error occurs: eg.<font face='verdana' color='#000000' size=3.6></font>
Results in a key error.I am unsure if this is intended, but I only realized that only discrete values are accepted after looking at the source code. More explicit value handling would be helpful.
Version:
pygame 2.1.0 (SDL 2.0.16, Python 3.9.9) pygame_gui is 0.6.0