Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

extract_font_range(3alleg4) [debian man page]

extract_font_range(3alleg4)					  Allegro manual				       extract_font_range(3alleg4)

NAME
extract_font_range - Extracts a range of characters from a font. Allegro game programming library. SYNOPSIS
#include <allegro.h> FONT *extract_font_range(FONT *f, int begin, int end) DESCRIPTION
This function extracts a character range from a font and returns a new font that contains only the range of characters selected by this function. You can pass -1 for either the lower or upper bound if you want to select all characters from the start or to the end of the font. Example: FONT *myfont; FONT *capitals; FONT *fontcopy; ... /* Create a font of only capital letters */ capitals = extract_font_range(myfont, 'A', 'Z'); /* Create a copy of the font */ fontcopy = extract_font_range(myfont, -1, -1); ... destroy_font(capitals); destroy_font(fontcopy); RETURN VALUE
Returns a pointer to the new font or NULL on error. Remember that you are responsible for destroying the font when you are finished with it to avoid memory leaks. SEE ALSO
get_font_range_begin(3alleg4), get_font_range_end(3alleg4), merge_fonts(3alleg4), transpose_font(3alleg4), exfont(3alleg4) Allegro version 4.4.2 extract_font_range(3alleg4)

Check Out this Related Man Page

exunicod(3alleg4)						  Allegro manual						 exunicod(3alleg4)

NAME
exunicod - Using Unicode string functions. Allegro game programming library. SYNOPSIS
#include <allegro.h> Example exunicod DESCRIPTION
This program demonstrates the use of the 16-bit Unicode text encoding format with Allegro. The example displays a message translated to different languages scrolling on the screen using an external font containing the required characters to display those messages. Note how the Allegro unicode string functions resemble the functions you can find in the standard C library, only these handle Unicode on all platforms. SEE ALSO
BITMAP(3alleg4), DATAFILE(3alleg4), END_OF_MAIN(3alleg4), FONT(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), allegro_error(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), blit(3alleg4), clear_to_color(3alleg4), create_bitmap(3alleg4), destroy_bitmap(3alleg4), font(3alleg4), install_int_ex(3alleg4), install_keyboard(3alleg4), install_timer(3alleg4), keypressed(3alleg4), load_datafile(3alleg4), replace_filename(3alleg4), rest(3alleg4), screen(3alleg4), set_gfx_mode(3alleg4), set_uformat(3alleg4), set_window_title(3alleg4), text_height(3alleg4), text_length(3alleg4), textout_ex(3alleg4), uconvert_ascii(3alleg4), unload_datafile(3alleg4), ustrcat(3alleg4), ustr- cpy(3alleg4), ustrsize(3alleg4), ustrsizez(3alleg4) Allegro version 4.4.2 exunicod(3alleg4)
Man Page