b2dGetFontWidth

Returns the average character width of the font in pixels. Takes font (font handle from b2dLoadFont, positive integer). Returns the average character width of the font in pixels.

2D Overlay

Parameters & Returns

Parameters

font Int

Returns

Int

Quick Summary

Returns the average character width of the font in pixels. Takes font (font handle from b2dLoadFont, positive integer). Returns the average character width of the font in pixels.

Technical Exegesis...

Returns the average character width of the font in pixels. Takes font (font handle from b2dLoadFont, positive integer). Returns integer average width (horizontal space per character in pixels, 0 if invalid font). Queries font metrics for typical character width, useful for estimating text dimensions.

Example

Example.bam
; No example implemented yet