Index

Package: Font_API

Description

package Font_API is

Classes

Abstract_Font (abstract)

type Abstract_Font is abstract new Limited_Object with private;

Ancestors:

Immediate Children:

Font_API.Alfont_Fonts.Alfont_Font
Font_API.Allegro_Fonts.Allegro_Font

Primitive operations:

Objects.Construct (Inherited)
Objects.Delete (Inherited)
Objects.To_String (Inherited)

Types

Font_Type

type Font_Type is access all Abstract_Font'Class;

Constants & Global variables

FONT_EXCEPTION

FONT_EXCEPTION : exception;

Subprograms & Entries

Initialize

procedure Initialize;
Raises an exception on failure.

Finalize

procedure Finalize;

Load_Font

function Load_Font
( filename: String;
size: Positive ) return Font_Type;
Raises an exception on error.

Text_Height (abstract)

function Text_Height
( this: access Abstract_Font ) return Positive is abstract;
Returns the height in pixels of a string rendered with the font.

Text_Length (abstract)

function Text_Length
( this: access Abstract_Font;
str: String ) return Natural is abstract;
Returns the length in pixels of a string rendered with the font.

Textout (abstract)

procedure Textout
( this: access Abstract_Font;
bmp: A_Bitmap;
str: String;
x, y: Integer;
color: Color_Type;
smooth: Boolean ) is abstract;

Delete

procedure Delete
( this: in out Font_Type );