Home | All Classes | Grouped Classes | Index | Search

CL_Font::set_alignment

Sets translation hotspot.

	void set_alignment(
		CL_Origin origin, int x = 0, int y = 0);

Detailed description:

This only has an effect if you're using CL_Font's drawing mechanism itself. If the font is just being used inside a complex multi-font class (such as CL_TextStyler) then it makes no difference. If that's the case, use the equivalent property of the class containing the font.

The origin also serves as line justification, as with a word processor. That is, origin_*_center results in center justification, and so on.

See also:

CL_Font



Questions or comments, write to the ClanLib mailing list.