get_font_range_begin(3alleg)

get_font_range_begin3alleg

Returns the start of a character range in a font. allegro game programming library.

Usage

#include <allegro.h>

int get_font_range_begin(FONT *f, int range)

Overview

This function allows you to find out the start of a specific character range for a font. You can pass -1 for the `range' parameter if you want to know the start of the whole font range, or a number from 0 to (but not including) get_font_ranges(f) to get the start of a specific character range in the font. Example:

   printf("The font has a character range of %d - %d\n",
          get_font_range_begin(font, -1),
          get_font_range_end(font, -1));

Return value

Returns the first character in the font range, or -1 if that information is not available.

Releases

3 releases since Debian 4.0 (Etch); the text changed 1 time.

  1. 4.0
  2. 5.0–6.0

From liballegro-doc 2:4.2.2-2.2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.