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_LOAD_TTF_FONT (3)

NAME

al_load_ttf_font - Allegro 5 API

CONTENTS

Synopsis
Description
See Also

SYNOPSIS

C]
#include <allegro5/allegro_ttf.h>

ALLEGRO_FONT *al_load_ttf_font(char const *filename, int size, int flags) ]

DESCRIPTION

Loads a TrueType font from a file using the FreeType library. Quoting from the FreeType FAQ this means support for many different font formats:

I]TrueType, OpenType, Type1, CID, CFF, Windows FON/FNT, X11 PCF, and others]

The I]size] parameter determines the size the font will be rendered at, specified in pixels. The standard font size is measured in I]units per EM], if you instead want to specify the size as the total height of glyphs in pixels, pass it as a negative value.

I]Note:] If you want to display text at multiple sizes, load the font multiple times with different size parameters.

The following flags are supported:
[bu] ALLEGRO_TTF_NO_KERNING - Do not use any kerning even if the font file supports it.
[bu] ALLEGRO_TTF_MONOCHROME - Load as a monochrome font (which means no anti-aliasing of the font is done).
[bu] ALLEGRO_TTF_NO_AUTOHINT - Disable the Auto Hinter which is enabled by default in newer versions of FreeType. Since: 5.0.6, 5.1.2

SEE ALSO

al_init_ttf_addon(3), al_load_ttf_font_f(3)

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


Allegro reference manual AL_LOAD_TTF_FONT (3)

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