Next Previous Contents

## 3.199 tgi_textwidth

> Function

>   Calculate the width of the text in pixels according to the current text style.

> Header

>   `tgi.h`

> Declaration

>   `unsigned __fastcall__ tgi_textwidth (const char* s);`

> Function

>   Calculate the width of the text in pixels according to the current text style.

> Header

>   `tgi.h`

> Description

>   Calculate the width of the text in pixels according to the current text style.

> Header

>   `tgi.h`

> Limits

>   - The function is only available as fastcall function, so it may only be used in presence of a prototype.
> Availability

>   cc65

> See also

>   Other tgi functions.

> Example

>   None.

Next Previous Contents