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, any UTF-8 text), 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