Previous: 4.53.2.1. ogBitFont object To the Table of Contents Next: 4.53.2.1.2. done()
4.53.2.1. ogBitFont object Table of Contents 4.53.2.1.2. done()

- 4.53.2.1.1. -
Table of Contents
4. Standard Units
4.53. ogFont - BitFont support for ObjGfx 4.0
4.53.2. ogFont Unit Objects
4.53.2.1. ogBitFont object
4.53.2.1.1. centerTextX()


4.53.2.1.1. centerTextX()

Targets: MS-DOS, Win32 console


ogFont Unit

Displays a centered string.

Declaration:
  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:







Previous: 4.53.2.1. ogBitFont object To the Table of Contents Next: 4.53.2.1.2. done()
4.53.2.1. ogBitFont object Table of Contents 4.53.2.1.2. done()

- 4.53.2.1.1. -