Index

Package: Alfont

Description

package Alfont is

Types

Alfont_Font

type Alfont_Font is private;

References:

alfont.ads:8:10 (declaration)
alfont.ads:9:38 (reference)
alfont.ads:323:10 (full declaration)
alfont.ads:324:27 (reference)

A_Alfont_Font

type A_Alfont_Font is access all Alfont_Font;

References:

alfont.ads:9:10 (declaration)
alfont.adb:34:56 (reference)
alfont.adb:36:68 (reference)
alfont.adb:45:40 (reference)
alfont.adb:47:39 (reference)
alfont.adb:57:45 (reference)
alfont.adb:59:42 (reference)
alfont.adb:68:42 (reference)
alfont.adb:70:39 (reference)
alfont.adb:79:50 (reference)
alfont.adb:81:47 (reference)
alfont.adb:90:54 (reference)
alfont.adb:92:51 (reference)
alfont.adb:116:42 (reference)
alfont.adb:118:39 (reference)
alfont.adb:127:41 (reference)
alfont.adb:129:38 (reference)
alfont.adb:138:48 (reference)
alfont.adb:140:45 (reference)
alfont.adb:149:47 (reference)
alfont.adb:151:44 (reference)
alfont.adb:160:54 (reference)
alfont.adb:162:51 (reference)
alfont.adb:171:53 (reference)
alfont.adb:173:50 (reference)
alfont.adb:182:53 (reference)
alfont.adb:184:50 (reference)
alfont.adb:193:52 (reference)
alfont.adb:195:49 (reference)
alfont.adb:204:49 (reference)
alfont.adb:206:46 (reference)
alfont.adb:215:48 (reference)
alfont.adb:217:45 (reference)
alfont.adb:226:41 (reference)
alfont.adb:228:38 (reference)
alfont.adb:237:40 (reference)
alfont.adb:239:37 (reference)
alfont.adb:248:53 (reference)
alfont.adb:250:50 (reference)
alfont.adb:259:52 (reference)
alfont.adb:261:49 (reference)
alfont.adb:270:39 (reference)
alfont.adb:272:36 (reference)
alfont.adb:281:42 (reference)
alfont.adb:283:39 (reference)
alfont.adb:293:44 (reference)
alfont.adb:299:41 (reference)
alfont.adb:312:41 (reference)
alfont.adb:318:38 (reference)
alfont.adb:331:47 (reference)
alfont.adb:338:44 (reference)
alfont.adb:352:44 (reference)
alfont.adb:359:41 (reference)
alfont.adb:373:51 (reference)
alfont.adb:379:48 (reference)
alfont.adb:392:48 (reference)
alfont.adb:398:45 (reference)
alfont.adb:411:54 (reference)
alfont.adb:418:51 (reference)
alfont.adb:432:51 (reference)
alfont.adb:439:48 (reference)
alfont.adb:453:50 (reference)
alfont.adb:459:47 (reference)
alfont.adb:472:47 (reference)
alfont.adb:478:44 (reference)
alfont.adb:491:53 (reference)
alfont.adb:498:50 (reference)
alfont.adb:512:50 (reference)
alfont.adb:519:47 (reference)
alfont.adb:532:40 (reference)
alfont.adb:534:37 (reference)
alfont.ads:55:56 (reference)
alfont.ads:62:78 (reference)
alfont.ads:70:40 (reference)
alfont.ads:84:42 (reference)
alfont.ads:87:44 (reference)
alfont.ads:92:45 (reference)
alfont.ads:93:42 (reference)
alfont.ads:96:50 (reference)
alfont.ads:117:54 (reference)
alfont.ads:121:58 (reference)
alfont.ads:126:51 (reference)
alfont.ads:131:52 (reference)
alfont.ads:136:42 (reference)
alfont.ads:140:41 (reference)
alfont.ads:148:41 (reference)
alfont.ads:151:40 (reference)
alfont.ads:154:44 (reference)
alfont.ads:157:43 (reference)
alfont.ads:160:48 (reference)
alfont.ads:163:47 (reference)
alfont.ads:166:54 (reference)
alfont.ads:169:53 (reference)
alfont.ads:172:53 (reference)
alfont.ads:175:52 (reference)
alfont.ads:178:49 (reference)
alfont.ads:181:48 (reference)
alfont.ads:184:51 (reference)
alfont.ads:189:50 (reference)
alfont.ads:196:41 (reference)
alfont.ads:199:40 (reference)
alfont.ads:203:47 (reference)
alfont.ads:208:46 (reference)
alfont.ads:226:50 (reference)
alfont.ads:229:49 (reference)
alfont.ads:233:53 (reference)
alfont.ads:236:52 (reference)
alfont.ads:240:51 (reference)
alfont.ads:243:50 (reference)
alfont.ads:247:52 (reference)
alfont.ads:250:51 (reference)
alfont.ads:253:52 (reference)
alfont.ads:256:51 (reference)
alfont.ads:259:53 (reference)
alfont.ads:262:52 (reference)
alfont.ads:265:39 (reference)
alfont.ads:269:42 (reference)
alfont.ads:303:68 (reference)
alfont.ads:304:68 (reference)
alfont.ads:305:68 (reference)
alfont.ads:306:68 (reference)
alfont.ads:308:75 (reference)
alfont.ads:309:75 (reference)
alfont.ads:310:75 (reference)
alfont.ads:311:75 (reference)
alfont.ads:313:74 (reference)
alfont.ads:314:74 (reference)
alfont.ads:315:74 (reference)
alfont.ads:316:74 (reference)
alfont.ads:318:40 (reference)
alfont.ads:319:40 (reference)
font_api-alfont_fonts.ads:21:19 (reference)

Size_Array

type Size_Array is array (Natural range <>) of Integer;

References:

alfont.ads:11:10 (declaration)
alfont.adb:99:34 (reference)
alfont.adb:102:55 (reference)
alfont.ads:12:27 (reference)
alfont.ads:13:37 (reference)

A_Size_Array

type A_Size_Array is access all Size_Array;

References:

alfont.ads:13:10 (declaration)
alfont.adb:90:77 (reference)
alfont.adb:102:35 (reference)
alfont.ads:117:77 (reference)

Constants & Global variables

STYLE_STANDARD

STYLE_STANDARD   : constant := 0;

References:

alfont.ads:15:5 (declaration)

STYLE_ITALIC

STYLE_ITALIC     : constant := 1;

References:

alfont.ads:16:5 (declaration)
Standard style font

STYLE_BOLD

STYLE_BOLD       : constant := 2;

References:

alfont.ads:17:5 (declaration)
Italic style font

STYLE_BOLDITALIC

STYLE_BOLDITALIC : constant := 3;

References:

alfont.ads:18:5 (declaration)
Bold style font

ALFONT_OK

ALFONT_OK        : constant := 0;

References:

alfont.ads:20:5 (declaration)
font_api-alfont_fonts.adb:9:34 (reference)
font_api-alfont_fonts.adb:48:62 (reference)

ALFONT_ERROR

ALFONT_ERROR     : constant := -1;

References:

alfont.ads:21:5 (declaration)

Subprograms & Entries

Alfont_Version

function Alfont_Version return String;

References:

alfont.ads:25:14 (declaration)
alfont.adb:27:14 (body)
alfont.adb:30:9 (label)
applications.adb:287:42 (reference)

Called by:

Applications.Init defined at applications.ads:113:14

Alfont_Init

function Alfont_Init return Integer;

References:

alfont.ads:33:14 (declaration)
alfont.ads:328:23 (body)
font_api-alfont_fonts.adb:9:19 (reference)
Initializes AllegroFont. Remember to call alfont_exit() when you are done with it! Nobody will do it automatically for you. return values: ALFONT_OK on success. Other value ( != 0 ) on error.

Alfont_Exit

procedure Alfont_Exit;

References:

alfont.ads:37:15 (declaration)
alfont.ads:329:23 (body)
font_api-alfont_fonts.adb:18:16 (reference)
Deinitializes AllegroFont and its resources (fonts included). It is important to call it before you exit.

Load_Font

function Load_Font
( filepathname: String )
return A_Alfont_Font;

References:

alfont.ads:55:14 (declaration)
alfont.adb:34:14 (body)
alfont.adb:41:9 (label)

Calls:

Alfont.Load_Font.C_Load_Font defined at alfont.adb:36:18
To_C defined at i-c.ads:84:13
Loads a font from a the following formats (thanks to FreeType 2): TrueType fonts (and collections) Type 1 fonts CID-keyed Type 1 fonts CFF fonts OpenType fonts (both TrueType and CFF variants) SFNT-based bitmap fonts X11 PCF fonts Windows FNT fonts Note the scalable fonts by default get loaded with a size of 8 pixels height. Use alfont_set_font_size() to change the font size. return values: NULL if there ocurred an error. Other value ( != NULL ) otherwise.

Load_Font_From_Mem

function Load_Font_From_Mem
( data: Address;
data_len: Natural )
return A_Alfont_Font;

References:

alfont.ads:62:14 (declaration)
alfont.ads:330:23 (body)
font_api-alfont_fonts.adb:45:32 (reference)

Called by:

Font_API.Alfont_Fonts.Construct defined at font_api-alfont_fonts.ads:25:15
Same as alfont_load_font only that instead of loading it from a file it loads it directly from memory. The lib will create its own copy of this buffer, so you are free to deallocate it once this function has been called.

Destroy_Font

procedure Destroy_Font
( f: in out A_Alfont_Font );

References:

alfont.ads:70:15 (declaration)
alfont.adb:45:15 (body)
alfont.adb:53:9 (label)
font_api-alfont_fonts.adb:67:16 (reference)

Called by:

Font_API.Alfont_Fonts.Delete defined at font_api-alfont_fonts.ads:29:15

Calls:

Alfont.Destroy_Font.C_Destroy_Font defined at alfont.adb:47:19
Destroys the font. Note this function check if the 'f' pointer is pointing to NULL, so for example this: ALFONT_FONT *f = NULL; alfont_destroy_font(f); won't crash the program.

Set_Font_Size

function Set_Font_Size
( f: not null A_Alfont_Font;
h: Positive )
return Integer;

References:

alfont.ads:84:14 (declaration)
alfont.ads:331:23 (body)
font_api-alfont_fonts.adb:48:27 (reference)

Called by:

Font_API.Alfont_Fonts.Construct defined at font_api-alfont_fonts.ads:25:15
Since AllegroFont can use scalable fonts (for example TrueType) this sets the size of the font. This should also work with multiple fixed sized fonts. Note changing the size of a font makes it to "reload" the internal glyphs of it, which is *slow*, so if you want to use many sizes of the same font very regularly, better create several instances of it. return values: ALFONT_ERROR if there ocurred an error (for example if the font is not scalable). ALFONT_OK otherwise.

Get_Font_Height

function Get_Font_Height
( f: not null A_Alfont_Font )
return Positive;

References:

alfont.ads:87:14 (declaration)
alfont.ads:332:23 (body)
Returns the selected font height.

Is_Scalable_Font

function Is_Scalable_Font
( f: not null A_Alfont_Font )
return Boolean;

References:

alfont.ads:92:14 (declaration)
alfont.adb:57:14 (body)
alfont.adb:64:9 (label)

Calls:

Alfont.Is_Scalable_Font.C_Is_Scalable_Font defined at alfont.adb:59:18
Return TRUE or FALSE, dependant on if the font is fixed (there is a range of sizes where to choose from) or scalable (any size can be used, well, or almost)

Is_Fixed_Font

function Is_Fixed_Font
( f: not null A_Alfont_Font )
return Boolean;

References:

alfont.ads:93:14 (declaration)
alfont.adb:68:14 (body)
alfont.adb:75:9 (label)

Calls:

Alfont.Is_Fixed_Font.C_Is_Fixed_Font defined at alfont.adb:70:18

Set_Font_Fixed_Width

procedure Set_Font_Fixed_Width
( f: not null A_Alfont_Font;
fixed_width: Boolean );

References:

alfont.ads:96:15 (declaration)
alfont.adb:79:15 (body)
alfont.adb:86:9 (label)

Calls:

Alfont.Set_Font_Fixed_Width.C_Set_Font_Fixed_Width defined at alfont.adb:81:19
Sets the selected font as fixed width.

Get_Available_Fixed_Sizes

function Get_Available_Fixed_Sizes
( f: not null A_Alfont_Font )
return A_Size_Array;

References:

alfont.ads:117:14 (declaration)
alfont.adb:90:14 (body)
alfont.adb:112:9 (label)

Calls:

Alfont.Get_Available_Fixed_Sizes.C_Get_Available_Fixed_Sizes defined at alfont.adb:92:18
Get_Nof_Available_Fixed_Sizes defined at alfont.ads:121:14
Returns an array with the available fixed heights, being the last item this array -1. In case of calling this function for a scalable font you will get an array of just one element, being it -1 If you have doubts on how to access the information because pointers scare you, you just have to do: const int *my_font_sizes; my_font_sizes = alfont_get_available_fixed_sizes(my_font); /* first size */ int first_h = my_font_sizes[0]; /* second */ int second_h = my_font_sizes[1]; and so until my_font_sizes[x] is -1 Regarding the Ada interface, the array returned from this function must be deleted by the caller. In the case of a scalable font, null will be returned.

Get_Nof_Available_Fixed_Sizes

function Get_Nof_Available_Fixed_Sizes
( f: not null A_Alfont_Font )
return Integer;

References:

alfont.ads:121:14 (declaration)
alfont.adb:95:35 (reference)
alfont.ads:333:23 (body)
Returns the number of available fixed sizes, or -1 if a scalable font is passed.

Get_Char_Extra_Spacing

function Get_Char_Extra_Spacing
( f: not null A_Alfont_Font )
return Natural;

References:

alfont.ads:126:14 (declaration)
alfont.ads:334:23 (body)
Returns the character extra spacing, this is, an int number that will be added to the space between characters, being the min of it '0'.

Set_Char_Extra_Spacing

procedure Set_Char_Extra_Spacing
( f: not null A_Alfont_Font;
spacing: Natural );

References:

alfont.ads:131:15 (declaration)
alfont.ads:335:23 (body)
Sets the character extra spacing, this is, an int number that will be added to the space between characters, being the min of it '0'.

Set_Language

procedure Set_Language
( f: not null A_Alfont_Font;
language: String );

References:

alfont.ads:136:15 (declaration)
alfont.adb:116:15 (body)
alfont.adb:123:9 (label)

Calls:

Alfont.Set_Language.C_Set_Language defined at alfont.adb:118:19
To_C defined at i-c.ads:84:13
Sets the language for the selected font. You can visit the language string in the header "alfont.h" or see "language_strings.txt"

Get_Language

function Get_Language
( f: not null A_Alfont_Font )
return String;

References:

alfont.ads:140:14 (declaration)
alfont.adb:127:14 (body)
alfont.adb:134:9 (label)

Calls:

Alfont.Get_Language.C_Get_Language defined at alfont.adb:129:18
To_Ada defined at i-c.ads:88:13
Value defined at i-cstrin.ads:66:13
Returns the language of the selected font.

Set_Convert

procedure Set_Convert
( f: not null A_Alfont_Font;
typ: Integer );

References:

alfont.ads:148:15 (declaration)
alfont.ads:336:23 (body)
Sets the convert type for the selected font. You can set the type as "No Switch",AlFont won't convert the string. Or you can set the type as "TYPE_MULTIBYTE",AlFont will convert the string as multibyte string(Local Code). Or you can set the type as "TYPE_WIDECHAR",AlFont will convert the string as widechar string(Unicode Code).

Get_Convert

function Get_Convert
( f: not null A_Alfont_Font )
return Integer;

References:

alfont.ads:151:14 (declaration)
alfont.ads:337:23 (body)
Returns the convert type of the selected font.

Set_Font_Style

procedure Set_Font_Style
( f: not null A_Alfont_Font;
style: Integer );

References:

alfont.ads:154:15 (declaration)
alfont.ads:338:23 (body)
Sets the selected font style as Standard,Italic,Bold or BoldItalic style font.

Get_Font_Style

function Get_Font_Style
( f: not null A_Alfont_Font )
return Integer;

References:

alfont.ads:157:14 (declaration)
alfont.ads:339:23 (body)
Returns the style of the selected font.

Set_Font_Underline

procedure Set_Font_Underline
( f: not null A_Alfont_Font;
underline: Boolean );

References:

alfont.ads:160:15 (declaration)
alfont.adb:138:15 (body)
alfont.adb:145:9 (label)

Calls:

Alfont.Set_Font_Underline.C_Set_Font_Underline defined at alfont.adb:140:19
Sets the selected font with underline.

Get_Font_Underline

function Get_Font_Underline
( f: not null A_Alfont_Font )
return Boolean;

References:

alfont.ads:163:14 (declaration)
alfont.adb:149:14 (body)
alfont.adb:156:9 (label)

Calls:

Alfont.Get_Font_Underline.C_Get_Font_Underline defined at alfont.adb:151:18
Returns if the selected font have been set as underline.

Set_Font_Underline_Right

procedure Set_Font_Underline_Right
( f: not null A_Alfont_Font;
underline_right: Boolean );

References:

alfont.ads:166:15 (declaration)
alfont.adb:160:15 (body)
alfont.adb:167:9 (label)

Calls:

Alfont.Set_Font_Underline_Right.C_Set_Font_Underline_Right defined at alfont.adb:162:19
Extends the right underline for the selected font.

Get_Font_Underline_Right

function Get_Font_Underline_Right
( f: not null A_Alfont_Font )
return Boolean;

References:

alfont.ads:169:14 (declaration)
alfont.adb:171:14 (body)
alfont.adb:178:9 (label)

Calls:

Alfont.Get_Font_Underline_Right.C_Get_Font_Underline_Right defined at alfont.adb:173:18
Returns if the selected font have been set as extend right underline.

Set_Font_Underline_Left

procedure Set_Font_Underline_Left
( f: not null A_Alfont_Font;
underline_left: Boolean );

References:

alfont.ads:172:15 (declaration)
alfont.adb:182:15 (body)
alfont.adb:189:9 (label)

Calls:

Alfont.Set_Font_Underline_Left.C_Set_Font_Underline_Left defined at alfont.adb:184:19
Extends the left underline for the selected font.

Get_Font_Underline_Left

function Get_Font_Underline_Left
( f: not null A_Alfont_Font )
return Boolean;

References:

alfont.ads:175:14 (declaration)
alfont.adb:193:14 (body)
alfont.adb:200:9 (label)

Calls:

Alfont.Get_Font_Underline_Left.C_Get_Font_Underline_Left defined at alfont.adb:195:18
Returns if the selected font have been set as extend left underline.

Set_Font_Background

procedure Set_Font_Background
( f: not null A_Alfont_Font;
background: Boolean );

References:

alfont.ads:178:15 (declaration)
alfont.adb:204:15 (body)
alfont.adb:211:9 (label)

Calls:

Alfont.Set_Font_Background.C_Set_Font_Background defined at alfont.adb:206:19
Sets the background for the selected font.(TRUE/FALSE)

Get_Font_Background

function Get_Font_Background
( f: not null A_Alfont_Font )
return Boolean;

References:

alfont.ads:181:14 (declaration)
alfont.adb:215:14 (body)
alfont.adb:222:9 (label)

Calls:

Alfont.Get_Font_Background.C_Get_Font_Background defined at alfont.adb:217:18
Returns if the selected font have been set to show the background color.

Set_Font_Transparency

procedure Set_Font_Transparency
( f: not null A_Alfont_Font;
transparency: Integer );

References:

alfont.ads:184:15 (declaration)
alfont.ads:340:23 (body)
Sets the transparency for the selected font.(0-255)

Get_Font_Transparency

function Get_Font_Transparency
( f: not null A_Alfont_Font )
return Integer;

References:

alfont.ads:189:14 (declaration)
alfont.ads:341:23 (body)
Returns the transparency of the selected font.

Set_Autofix

procedure Set_Autofix
( f: not null A_Alfont_Font;
autofix: Boolean );

References:

alfont.ads:196:15 (declaration)
alfont.adb:226:15 (body)
alfont.adb:233:9 (label)

Calls:

Alfont.Set_Autofix.C_Set_Autofix defined at alfont.adb:228:19
Autofix the shortcutted character while trying to convert ASCII encoding format to Unicode encoding format. The shortcutted character will be appended to the next string. After the shortcutted character showed with the next string, the shortcutted character value will be set as 0. The function will be useful for double-byte characters.

Get_Autofix

function Get_Autofix
( f: not null A_Alfont_Font )
return Boolean;

References:

alfont.ads:199:14 (declaration)
alfont.adb:237:14 (body)
alfont.adb:244:9 (label)

Calls:

Alfont.Get_Autofix.C_Get_Autofix defined at alfont.adb:239:18
Returns if the selected font have been set as autofix.

Set_Precedingchar

procedure Set_Precedingchar
( f: not null A_Alfont_Font;
precedingchar: Integer );

References:

alfont.ads:203:15 (declaration)
alfont.ads:342:23 (body)
Sets the shortcutted character value. The shortcutted character will be showed in the front of the next string.

Get_Precedingchar

function Get_Precedingchar
( f: not null A_Alfont_Font )
return Integer;

References:

alfont.ads:208:14 (declaration)
alfont.ads:343:23 (body)
Returns the shortcutted character value that will be appended to the next string. If there are not the shortcutted character that will be appended to the next string, the return value of the alfont_get_precedingchar function will be 0.

Set_Font_Outline_Top

procedure Set_Font_Outline_Top
( f: not null A_Alfont_Font;
w: Natural );

References:

alfont.ads:226:15 (declaration)
alfont.ads:344:23 (body)
Adds the outline width of the top for the selected font. The height of the selected font is the max restriction.

Get_Font_Outline_Top

function Get_Font_Outline_Top
( f: not null A_Alfont_Font )
return Natural;

References:

alfont.ads:229:14 (declaration)
alfont.ads:345:23 (body)
Returns the top outline width of the selected font.

Set_Font_Outline_Bottom

procedure Set_Font_Outline_Bottom
( f: not null A_Alfont_Font;
w: Natural );

References:

alfont.ads:233:15 (declaration)
alfont.ads:346:23 (body)
Adds the outline width of the bottom for the selected font. The height of the selected font is the max restriction.

Get_Font_Outline_Bottom

function Get_Font_Outline_Bottom
( f: not null A_Alfont_Font )
return Natural;

References:

alfont.ads:236:14 (declaration)
alfont.ads:347:23 (body)
Returns the bottom outline width of the selected font.

Set_Font_Outline_Left

procedure Set_Font_Outline_Left
( f: not null A_Alfont_Font;
w: Natural );

References:

alfont.ads:240:15 (declaration)
alfont.ads:348:23 (body)
Adds the outline width of the left for the selected font. The width of the selected font is the max restriction.

Get_Font_Outline_Left

function Get_Font_Outline_Left
( f: not null A_Alfont_Font )
return Natural;

References:

alfont.ads:243:14 (declaration)
alfont.ads:349:23 (body)
Returns the left outline width of the selected font.

Set_Font_Outline_Right

procedure Set_Font_Outline_Right
( f: not null A_Alfont_Font;
w: Natural );

References:

alfont.ads:247:15 (declaration)
alfont.ads:350:23 (body)
Adds the outline width of the right for the selected font. The width of the selected font is the max restriction.

Get_Font_Outline_Right

function Get_Font_Outline_Right
( f: not null A_Alfont_Font )
return Natural;

References:

alfont.ads:250:14 (declaration)
alfont.ads:351:23 (body)
Returns the right outline width of the selected font.

Set_Font_Outline_Color

procedure Set_Font_Outline_Color
( f: not null A_Alfont_Font;
c: Integer );

References:

alfont.ads:253:15 (declaration)
alfont.ads:352:23 (body)
Sets the outline color for the selected font.

Get_Font_Outline_Color

function Get_Font_Outline_Color
( f: not null A_Alfont_Font )
return Integer;

References:

alfont.ads:256:14 (declaration)
alfont.ads:353:23 (body)
Returns the outline color of the selected font.

Set_Font_Outline_Hollow

procedure Set_Font_Outline_Hollow
( f: not null A_Alfont_Font;
hollow: Boolean );

References:

alfont.ads:259:15 (declaration)
alfont.adb:248:15 (body)
alfont.adb:255:9 (label)

Calls:

Alfont.Set_Font_Outline_Hollow.C_Set_Font_Outline_Hollow defined at alfont.adb:250:19
Sets the selected font as hollow.(TRUE/FALSE)

Get_Font_Outline_Hollow

function Get_Font_Outline_Hollow
( f: not null A_Alfont_Font )
return Boolean;

References:

alfont.ads:262:14 (declaration)
alfont.adb:259:14 (body)
alfont.adb:266:9 (label)

Calls:

Alfont.Get_Font_Outline_Hollow.C_Get_Font_Outline_Hollow defined at alfont.adb:261:18
Returns if the selected font have been set as hollow.

Text_Count

function Text_Count
( f: not null A_Alfont_Font;
str: String )
return Natural;

References:

alfont.ads:265:14 (declaration)
alfont.adb:270:14 (body)
alfont.adb:277:9 (label)

Calls:

Alfont.Text_Count.C_Text_Count defined at alfont.adb:272:18
To_C defined at i-c.ads:84:13
Returns the length of the string.

Need_Uconvert

function Need_Uconvert
( f: not null A_Alfont_Font;
str: String )
return Boolean;

References:

alfont.ads:269:14 (declaration)
alfont.adb:281:14 (body)
alfont.adb:288:9 (label)

Calls:

Alfont.Need_Uconvert.C_Need_Uconvert defined at alfont.adb:283:18
To_C defined at i-c.ads:84:13
Returns TRUE if unicode conversion is required or FALSE otherwise, that is the string contains only character values less than 128.

Text_Mode

function Text_Mode
( mode: Integer )
return Integer;

References:

alfont.ads:301:14 (declaration)
alfont.ads:354:23 (body)
Sets text drawing mode. The previous mode is returned.

Textout_aa

procedure Textout_aa
( bmp: not null A_Bitmap;
f: not null A_Alfont_Font;
s: String;
x, y: Integer;
color: Color_Type );

References:

alfont.ads:303:15 (declaration)
alfont.adb:292:15 (body)
alfont.adb:307:9 (label)

Calls:

Alfont.Textout_aa.C_Textout_aa defined at alfont.adb:298:19
To_C defined at i-c.ads:84:13

Textout

procedure Textout
( bmp: not null A_Bitmap;
f: not null A_Alfont_Font;
s: String;
x, y: Integer;
color: Color_Type );

References:

alfont.ads:304:15 (declaration)
alfont.adb:311:15 (body)
alfont.adb:326:9 (label)

Calls:

Alfont.Textout.C_Textout defined at alfont.adb:317:19
To_C defined at i-c.ads:84:13

Textout_aa_ex

procedure Textout_aa_ex
( bmp: not null A_Bitmap;
f: not null A_Alfont_Font;
s: String;
x, y: Integer;
color: Color_Type;
backg: Integer );

References:

alfont.ads:305:15 (declaration)
alfont.adb:330:15 (body)
alfont.adb:347:9 (label)
font_api-alfont_fonts.adb:99:20 (reference)

Called by:

Font_API.Alfont_Fonts.Textout defined at font_api-alfont_fonts.ads:36:15

Calls:

Alfont.Textout_aa_ex.C_Textout_aa_ex defined at alfont.adb:337:19
To_C defined at i-c.ads:84:13

Textout_ex

procedure Textout_ex
( bmp: not null A_Bitmap;
f: not null A_Alfont_Font;
s: String;
x, y: Integer;
color: Color_Type;
backg: Integer );

References:

alfont.ads:306:15 (declaration)
alfont.adb:351:15 (body)
alfont.adb:368:9 (label)
font_api-alfont_fonts.adb:101:20 (reference)

Called by:

Font_API.Alfont_Fonts.Textout defined at font_api-alfont_fonts.ads:36:15

Calls:

Alfont.Textout_ex.C_Textout_ex defined at alfont.adb:358:19
To_C defined at i-c.ads:84:13

Textout_Centre_aa

procedure Textout_Centre_aa
( bmp: not null A_Bitmap;
f: not null A_Alfont_Font;
s: String;
x, y: Integer;
color: Color_Type );

References:

alfont.ads:308:15 (declaration)
alfont.adb:372:15 (body)
alfont.adb:387:9 (label)

Calls:

Alfont.Textout_Centre_aa.C_Textout_Centre_aa defined at alfont.adb:378:19
To_C defined at i-c.ads:84:13

Textout_Centre

procedure Textout_Centre
( bmp: not null A_Bitmap;
f: not null A_Alfont_Font;
s: String;
x, y: Integer;
color: Color_Type );

References:

alfont.ads:309:15 (declaration)
alfont.adb:391:15 (body)
alfont.adb:406:9 (label)

Calls:

Alfont.Textout_Centre.C_Textout_Centre defined at alfont.adb:397:19
To_C defined at i-c.ads:84:13

Textout_Centre_aa_ex

procedure Textout_Centre_aa_ex
( bmp: not null A_Bitmap;
f: not null A_Alfont_Font;
s: String;
x, y: Integer;
color: Color_Type;
backg: Integer );

References:

alfont.ads:310:15 (declaration)
alfont.adb:410:15 (body)
alfont.adb:427:9 (label)

Calls:

Alfont.Textout_Centre_aa_ex.C_Textout_Centre_aa_ex defined at alfont.adb:417:19
To_C defined at i-c.ads:84:13

Textout_Centre_ex

procedure Textout_Centre_ex
( bmp: not null A_Bitmap;
f: not null A_Alfont_Font;
s: String;
x, y: Integer;
color: Color_Type;
backg: Integer );

References:

alfont.ads:311:15 (declaration)
alfont.adb:431:15 (body)
alfont.adb:448:9 (label)

Calls:

Alfont.Textout_Centre_ex.C_Textout_Centre_ex defined at alfont.adb:438:19
To_C defined at i-c.ads:84:13

Textout_Right_aa

procedure Textout_Right_aa
( bmp: not null A_Bitmap;
f: not null A_Alfont_Font;
s: String;
x, y: Integer;
color: Color_Type );

References:

alfont.ads:313:15 (declaration)
alfont.adb:452:15 (body)
alfont.adb:467:9 (label)

Calls:

Alfont.Textout_Right_aa.C_Textout_Right_aa defined at alfont.adb:458:19
To_C defined at i-c.ads:84:13

Textout_Right

procedure Textout_Right
( bmp: not null A_Bitmap;
f: not null A_Alfont_Font;
s: String;
x, y: Integer;
color: Color_Type );

References:

alfont.ads:314:15 (declaration)
alfont.adb:471:15 (body)
alfont.adb:486:9 (label)

Calls:

Alfont.Textout_Right.C_Textout_Right defined at alfont.adb:477:19
To_C defined at i-c.ads:84:13

Textout_Right_aa_ex

procedure Textout_Right_aa_ex
( bmp: not null A_Bitmap;
f: not null A_Alfont_Font;
s: String;
x, y: Integer;
color: Color_Type;
backg: Integer );

References:

alfont.ads:315:15 (declaration)
alfont.adb:490:15 (body)
alfont.adb:507:9 (label)

Calls:

Alfont.Textout_Right_aa_ex.C_Textout_Right_aa_ex defined at alfont.adb:497:19
To_C defined at i-c.ads:84:13

Textout_Right_ex

procedure Textout_Right_ex
( bmp: not null A_Bitmap;
f: not null A_Alfont_Font;
s: String;
x, y: Integer;
color: Color_Type;
backg: Integer );

References:

alfont.ads:316:15 (declaration)
alfont.adb:511:15 (body)
alfont.adb:528:9 (label)

Calls:

Alfont.Textout_Right_ex.C_Textout_Right_ex defined at alfont.adb:518:19
To_C defined at i-c.ads:84:13

Text_Height

function Text_Height
( f: not null A_Alfont_Font )
return Natural;

References:

alfont.ads:318:14 (declaration)
alfont.ads:355:23 (body)
font_api-alfont_fonts.adb:76:23 (reference)

Called by:

Font_API.Alfont_Fonts.Text_Height defined at font_api-alfont_fonts.ads:31:14

Text_Length

function Text_Length
( f: not null A_Alfont_Font;
str: String )
return Natural;

References:

alfont.ads:319:14 (declaration)
alfont.adb:532:14 (body)
alfont.adb:539:9 (label)
font_api-alfont_fonts.adb:85:23 (reference)

Called by:

Font_API.Alfont_Fonts.Text_Length defined at font_api-alfont_fonts.ads:33:14

Calls:

Alfont.Text_Length.C_Text_Length defined at alfont.adb:534:18
To_C defined at i-c.ads:84:13