al_get_text_dimensions man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

al_get_text_dimensions(3)			     al_get_text_dimensions(3)

NAME
       al_get_text_dimensions - Allegro 5 API

SYNOPSIS
	      #include <allegro5/allegro_font.h>

	      void al_get_text_dimensions(const ALLEGRO_FONT *f,
		 char const *text,
		 int *bbx, int *bby, int *bbw, int *bbh)

DESCRIPTION
       Sometimes,   the	 al_get_text_width(3)  and  al_get_font_line_height(3)
       functions are not enough for exact text	placement,  so	this  function
       returns some additional information.

       Returned variables (all in pixel):

       · x, y - Offset to upper left corner of bounding box.

       · w, h - Dimensions of bounding box.

       Note that glyphs may go to the left and upwards of the X, in which case
       x and y will have negative values.

SEE ALSO
       al_get_text_width(3),  al_get_font_line_height(3),   al_get_ustr_dimen‐
       sions(3)

Allegro reference manual			     al_get_text_dimensions(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net