GetGTextLen% Function Action Returns the pixel length of a string based on the currently selected font. Syntax GetGTextLen% ( txt$) Remarks GetGTextLen% is an integer that contains the pixel length of the string supplied in the argument txt$. The pixel length returned from the GetGTextLen% function is based on the currently selected font. From this pixel length, you then can determine whether a string will fit on a particular screen (for example, CGA, EGA).