Category: 2D Overlay
Syntax:
b2dGetStringWidth:Int(text:String, font:Int)
Int
Returns the exact width of rendered text string in pixels.
Takes text (string to measure; ASCII with a bitmap font, or full Unicode/UTF-8 with a TTF font (see b2dLoadTTF)), font (font handle from b2dLoadFont, positive integer).
Returns the exact width of rendered text string in pixels.
View detailed documentation online
;No example implemented yet
BambooBasic © 2026 Michael Denathorn