Quantcast
Viewing all articles
Browse latest Browse all 6821

Is there a simple way to calculate a bounding box for a string?

@darthdeus wrote:

I'm using SpriteBatch.DrawString(...) to render some text, and I'd like to first draw a background underneath it.

Is there a way to calculate the bounding box of a to-be-rendered text with a specific font?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles