get_text_alignment


unsigned get_text_alignment(handle device)

This function obtains the text alignment flags.

Parameters

handle device

The handle of the device context.

Return

unsigned

The text alignment flags or -1 if an error occurred.

Notes

The functions:

use the setting of the text alignment to define the relationship of the reference point to the bounding rectangle of the text. The bounding rectangle is formed as the union of the individual character boxes. The bounding rectangle may be queried via a call to the function get_text_extent.