b2dGetStringWidth

Category: 2D Overlay

Syntax:

b2dGetStringWidth:Int(text:String, font:Int)


Parameters

Returns

Int



Summary

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



Example

;No example implemented yet


BambooBasic © 2026 Michael Denathorn