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

get_font_ranges - Returns the number of character ranges in a font. Allegro game programming library.

Description

       Use  this  function  to find out the number of character ranges in a font. You should query each of these
       ranges with get_font_range_begin() and get_font_range_end() to find out what characters are available  in
       the font. Example:

          FONT *f;
          int range;
          int n;
          ...

          range = get_font_ranges(f);
          printf("The font has %d character ranges:\n", range);
          for (n = 0; n < range; n++)
             printf("Range %d from 0x%03x - 0x%03x\n",
                    get_font_range_begin(f, n),
                    get_font_range_end(f, n));

Name

       get_font_ranges - Returns the number of character ranges in a font. Allegro game programming library.

Return Value

       Returns the number of continuous character ranges in a font, or -1 if that information is not available.

See Also

get_font_range_begin(3alleg4), get_font_range_end(3alleg4), transpose_font(3alleg4)

Allegro                                           version 4.4.3                         get_font_ranges(3alleg4)

Synopsis

#include<allegro.h>intget_font_ranges(FONT*f)

See Also