![]() |
![]()
| ![]() |
![]()
NAMEmerge_fonts - Merges two fonts into one font. Allegro game programming library. SYNOPSIS#include <allegro.h> FONT *merge_fonts(FONT *f1, FONT *f2) DESCRIPTIONThis function merges the character ranges from two fonts and returns a new font containing all characters in the old fonts. In general, you cannot merge fonts of different types (eg, TrueType fonts and bitmapped fonts), but as a special case, this function can promote a monochrome bitmapped font to a color font and merge those. Example:
RETURN VALUEReturns 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 ALSOextract_font_range(3), is_trans_font(3), is_color_font(3), is_mono_font(3), exfont(3)
|