Font.TextWidth (gb.sdl2)

Function TextWidth ( Text As String ) As Integer

Return the width in pixels of a specific text displayed with that font.