logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

transpose_font - Transposes all characters in a font. Allegro game programming library.

Description

       This function transposes all characters in a font, effectively remapping the font. Example:

          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);

Name

       transpose_font - Transposes all characters in a font. Allegro game programming library.

Return Value

       Returns 0 on success, -1 on failure.

See Also

get_font_range_begin(3alleg4),             get_font_range_end(3alleg4),             merge_fonts(3alleg4),
       extract_font_range(3alleg4)

Allegro                                           version 4.4.3                          transpose_font(3alleg4)

Synopsis

#include<allegro.h>inttranspose_font(FONT*f,intdrange)

See Also