GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  AL_GET_TEXT_DIMENSIONS (3)

NAME

al_get_text_dimensions - Allegro 5 API

CONTENTS

Synopsis
Description
See Also

SYNOPSIS

C]
#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):
[bu] x, y - Offset to upper left corner of bounding box.
[bu] 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_dimensions(3)

Search for    or go to Top of page |  Section 3 |  Main Index


Allegro reference manual AL_GET_TEXT_DIMENSIONS (3)

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.