Unit al5ttf

Uses
Classes, Interfaces, Objects and Records
Types
Variables

Description

This unit registers TrueType Font format handlers for al_load_font.

Overview

Functions and Procedures

FUNCTION al_load_ttf_font (filename: AL_STR; size, flags: AL_INT): ALLEGRO_FONTptr; CDECL; EXTERNAL ALLEGRO_TTF_LIB_NAME;
FUNCTION al_load_ttf_font_stretch (filename: AL_STR; w, h, flags: AL_INT): ALLEGRO_FONTptr; CDECL; EXTERNAL ALLEGRO_TTF_LIB_NAME;
FUNCTION al_init_ttf_addon: AL_BOOL; CDECL; EXTERNAL ALLEGRO_TTF_LIB_NAME;
PROCEDURE al_shutdown_ttf_addon; CDECL; EXTERNAL ALLEGRO_TTF_LIB_NAME;
FUNCTION al_get_allegro_ttf_version: AL_UINT32; CDECL; EXTERNAL ALLEGRO_TTF_LIB_NAME;

Constants

ALLEGRO_TTF_NO_KERNING = 1;
ALLEGRO_TTF_MONOCHROME = 2;
ALLEGRO_TTF_NO_AUTOHINT = 4;

Description

Functions and Procedures

FUNCTION al_load_ttf_font (filename: AL_STR; size, flags: AL_INT): ALLEGRO_FONTptr; CDECL; EXTERNAL ALLEGRO_TTF_LIB_NAME;
 
FUNCTION al_load_ttf_font_stretch (filename: AL_STR; w, h, flags: AL_INT): ALLEGRO_FONTptr; CDECL; EXTERNAL ALLEGRO_TTF_LIB_NAME;
 
FUNCTION al_init_ttf_addon: AL_BOOL; CDECL; EXTERNAL ALLEGRO_TTF_LIB_NAME;

Initializes the TTF addon. Call this after al_init_font_addon to make al_load_font recognize ".ttf" and other formats supported by al_load_ttf_font.

Returns

True on success, False on failure.

PROCEDURE al_shutdown_ttf_addon; CDECL; EXTERNAL ALLEGRO_TTF_LIB_NAME;

Shuts down the TTF addon. This is done automatically at program exit, but can be called any time the user wishes as well.

FUNCTION al_get_allegro_ttf_version: AL_UINT32; CDECL; EXTERNAL ALLEGRO_TTF_LIB_NAME;

Returns the (compiled) version of the addon, in the same format as al_get_allegro_version.

Constants

ALLEGRO_TTF_NO_KERNING = 1;

Do not use any kerning even if the font file supports it.

See also
al_load_font
Loads a font from disk.
al_load_ttf_font
ALLEGRO_TTF_MONOCHROME = 2;

Loads as monochrome, which means no anti-aliasing of the font is done.

See also
al_load_font
Loads a font from disk.
al_load_ttf_font
ALLEGRO_TTF_NO_AUTOHINT = 4;

Do not use hinging (?).

See also
al_load_font
Loads a font from disk.
al_load_ttf_font

Generated by PasDoc 0.14.0. Generated on 2017-01-03 13:25:50.