4.53.2.1. ogBitFont object | Table of Contents | 4.53.2.1.2. done() |
procedure centerTextX(var buf:ogSurface; y:int32; const textString:string);Remarks:
Displays a centered string to an ogSurface. The y value is the pixel coordinate of the upper left of the string. If the displayed string is larger than the surface, the left and right edges of the string will be cut off.
The if the background colour of the font is the same colour as the transparent colour of the surface only the foreground colour pixels will be displayed.
See also:4.53.2.1. ogBitFont object | Table of Contents | 4.53.2.1.2. done() |