Index

Package: Font_API

Description

package Font_API is

Classes

Abstract_Font (abstract)

type Abstract_Font is abstract new Object with private;

Ancestors:

Immediate Children:

Font_API.Alfont_Fonts.Alfont_Font
Font_API.Allegro_Fonts.Allegro_Font

Primitive operations:

Adjust (overriding Objects.Adjust)
Objects.Construct (Inherited)
Objects.Delete (Inherited)
Objects.Object_Read (Inherited)
Objects.Object_Write (Inherited)
Objects.To_String (Inherited)

References:

font_api.ads:15:10 (declaration)
font_api-alfont_fonts.adb:42:9 (reference)
font_api-alfont_fonts.adb:68:9 (reference)
font_api-alfont_fonts.ads:19:29 (reference)
font_api-allegro_fonts.adb:28:9 (reference)
font_api-allegro_fonts.adb:49:9 (reference)
font_api-allegro_fonts.ads:14:30 (reference)
font_api.adb:56:37 (reference)
font_api.ads:16:34 (reference)
font_api.ads:23:41 (reference)
font_api.ads:26:41 (reference)
font_api.ads:29:40 (reference)
font_api.ads:43:10 (full declaration)
font_api.ads:46:37 (reference)

Types

Font_Type

type Font_Type is access all Abstract_Font'Class;

References:

font_api.ads:16:10 (declaration)
drawing_contexts.adb:210:33 (reference)
drawing_contexts.ads:93:33 (reference)
font_api-alfont_fonts.adb:23:69 (reference)
font_api-alfont_fonts.adb:24:16 (reference)
font_api-alfont_fonts.ads:12:69 (reference)
font_api-allegro_fonts.adb:10:69 (reference)
font_api-allegro_fonts.adb:11:16 (reference)
font_api-allegro_fonts.ads:7:69 (reference)
font_api.adb:38:69 (reference)
font_api.adb:39:16 (reference)
font_api.adb:65:37 (reference)
font_api.ads:19:69 (reference)
font_api.ads:36:37 (reference)
themes.adb:41:20 (reference)
themes.adb:70:16 (reference)
themes.adb:204:49 (reference)
themes.adb:238:25 (reference)
themes.adb:252:25 (reference)
themes.adb:303:50 (reference)
themes.adb:307:17 (reference)
themes.ads:82:49 (reference)
themes.ads:138:70 (reference)
themes.ads:169:50 (reference)
widgets-input_boxes.adb:197:26 (reference)
widgets-menubars.adb:95:30 (reference)

Constants & Global variables

FONT_EXCEPTION

FONT_EXCEPTION : exception;

References:

font_api.ads:39:5 (declaration)
font_api-alfont_fonts.adb:10:19 (reference)
font_api-allegro_fonts.adb:37:19 (reference)

Subprograms & Entries

Initialize

procedure Initialize;

References:

font_api.ads:9:15 (declaration)
applications.adb:493:22 (reference)
font_api.adb:16:15 (body)
font_api.adb:23:9 (label)

Called by:

Applications.Init defined at applications.ads:113:14
Raises an exception on failure.

Finalize

procedure Finalize;

References:

font_api.ads:11:15 (declaration)
applications.adb:181:18 (reference)
applications.adb:517:22 (reference)
font_api.adb:27:15 (body)
font_api.adb:34:9 (label)

Called by:

Applications.Close defined at applications.ads:39:15
Applications.Init defined at applications.ads:113:14

Load_Font

function Load_Font
( filename: String;
size: Positive )
return Font_Type;

References:

font_api.ads:19:14 (declaration)
font_api.adb:38:14 (body)
font_api.adb:51:9 (label)
themes.adb:327:21 (reference)

Called by:

Themes.Load_Font defined at themes.ads:166:14
Raises an exception on error.

Text_Height (abstract)

function Text_Height
( this: access Abstract_Font )
return Positive is abstract;

References:

font_api.ads:23:14 (declaration)
themes.adb:241:25 (dispatching call)
widgets-input_boxes.adb:210:60 (dispatching call)
widgets-input_boxes.adb:215:51 (dispatching call)
widgets-menubars.adb:96:63 (dispatching call)

Called by:

Themes.Get_Text_Height defined at themes.ads:87:14
Widgets.Input_Boxes.Draw_Content defined at widgets-input_boxes.ads:130:15
Widgets.Input_Boxes.Draw_Content defined at widgets-input_boxes.ads:130:15
Widgets.Menubars.Draw_Content defined at widgets-menubars.ads:59:15
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;

References:

font_api.ads:26:14 (declaration)
themes.adb:255:25 (dispatching call)
widgets-input_boxes.adb:217:66 (dispatching call)
widgets-menubars.adb:97:41 (dispatching call)

Called by:

Themes.Get_Text_Width defined at themes.ads:101:14
Widgets.Input_Boxes.Draw_Content defined at widgets-input_boxes.ads:130:15
Widgets.Menubars.Draw_Content defined at widgets-menubars.ads:59:15
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;

References:

font_api.ads:29:15 (declaration)
drawing_contexts.adb:217:15 (dispatching call)

Delete

procedure Delete
( this: in out Font_Type );

References:

font_api.ads:36:15 (declaration)
font_api-alfont_fonts.adb:30:13 (reference)
font_api-allegro_fonts.adb:17:13 (reference)
font_api.adb:65:15 (body)
font_api.adb:68:9 (label)
themes.adb:75:13 (reference)

Calls:

Objects.Delete defined at objects.ads:46:15