Angel Font Word Width

Monkey Forums/Monkey Programming/Angel Font Word Width

C10B(Posted 2013) [#1]
Hi all. Happy new year :-)

I am using AngelFont to add text to the screen using
font.DrawHTML(blah blah)

I would like to draw a nice snug fitting box around the text and therefore need to know its rendered width and height. I'm not using a fixed width font so it's not an easy calculation to do manually. Will AngelFont let me know this information some how?

Thank you


Midimaster(Posted 2013) [#2]
If MyFont is your returned Angelfont-Object you simply can write:

MyFont.TextWidth(AnyString$)

MyFont.TextHeight(AnyString$)


C10B(Posted 2013) [#3]
Really? It's that simple? Doh!
I should RTFM if only I could could find it.
Thanks ever so much :-)