> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/api/functions/hudrenderer.stringwidth.md).

# hudRenderer.stringWidth

> **stringWidth**(`text`): `number`

Returns the pixel width of a string using the current HUD font.

### Parameters

#### text

`string`

The string to measure.

### Returns

`number`

The width of the string in pixels.
