#Get hint string text width

1 messages · Page 1 of 1 (latest)

winged zephyr
#

Background:
I want to align some text on the left side of the screen, and on the right side of the screen. But a hint seems to only accept a single <align> for the entire input.
I have now aligned my text to the left and am now trying to calculate the <pos> manually based on the string width.

Online i can only find resources which use Windows Forms or Text Component properties or methods, but here i am not sure if anything like that would even be accessible.

Maybe someone here has any idea on how i could achieve this?

orchid sparrow
#

if you append <line-height=0%>\n</line-height> inbetween, it should work correctly afaik

winged zephyr
#

That is a brilliant hack, thank you