extract_font_range man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

extract_font_range(3)		Allegro manual		 extract_font_range(3)

NAME
       extract_font_range  - Extracts a range of characters from a font. Alle‐
       gro 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 func‐
       tion. 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(3), get_font_range_end(3), merge_fonts(3),	trans‐
       pose_font(3), exfont(3)

Allegro				 version 4.4.2		 extract_font_range(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net