@mrmsdbdl wrote:
I’m trying to get the width of each word when I draw a sentence using a monotype font. So, I declared a
ofTrueTypeFont
, andload
the font I want, then I use thestringWidth("Hello")
to get the width but I only get-Inf
back. I’ve also tried to usegetStringBoundingBox()
as well but I get(-Inf, -Inf)
. I’m wondering what I do wrong here, and what else can I use to get the width correctly?
Posts: 2
Participants: 2