make_trans_font (3) - Linux Manuals
make_trans_font: Makes a font use transparency. Allegro game programming library.
Command to display make_trans_font
manual in Linux: $ man 3 make_trans_font
NAME
make_trans_font - Makes a font use transparency. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
void make_trans_font(FONT *f);
DESCRIPTION
This function converts a font to use transparency for drawing. That is, each
glyph in the font will be drawn with draw_trans_sprite, so you can use the
same blenders as with draw_trans_sprite to draw the font. One common use of
this is to load a bitmap font with an alpha channel, and therefore get
anti-aliased text output by using Allegro's alpha blender. Here's an example
how to do that:
FONT *f = load_font("alphafont.tga", NULL, NULL);
make_trans_font(f);
set_alpha_blender();
textprintf_centre_ex(screen, f, 320, 240, -1, -1, "Anti-aliased Font!");
Pages related to make_trans_font
- make_absolute_filename (3) - Makes an absolute filename from a path and relative filename. Allegro game programming library.
- make_relative_filename (3) - Tries to make a relative filename from absolute path and filename. Allegro game programming library.
- make_step_iterator (3) - Iterator advancing in constant steps.
- makeSeries (3) - interval price
- makeacol (3) - Converts RGBA colors into display dependent pixel formats. Allegro game programming library.
- makeacol32 (3) - Converts an RGBA color into a 32-bit display pixel format. Allegro game programming library.
- makeacol_depth (3) - Converts RGBA colors into display dependent pixel formats. Allegro game programming library.
- makecol (3) - Converts an RGB value into the current pixel format. Allegro game programming library.