.\" Generated by the Allegro makedoc utility .TH transpose_font 3alleg4 "version 4.4.2" "Allegro" "Allegro manual" .SH NAME transpose_font \- Transposes all characters in a font. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B int transpose_font(FONT *f, int drange) .SH DESCRIPTION This function transposes all characters in a font, effectively remapping the font. Example: .nf FONT *myfont; FONT *capitals; ... /* Create a font of only capital letters */ capitals = extract_font_range(myfont, 'A', 'Z'); /* Now transpose the characters in the font so that they will be used */ /* for the lower case letters a-z */ transpose_font(capitals, 'a'-'A'); textout_ex(screen, capitals, "allcaps", 100, 100, makecol(255,255,255), 0); .fi .SH "RETURN VALUE" Returns 0 on success, -1 on failure. .SH SEE ALSO .BR get_font_range_begin (3alleg4), .BR get_font_range_end (3alleg4), .BR merge_fonts (3alleg4), .BR extract_font_range (3alleg4)