al_get_font_ranges(3alleg5)

al_get_font_ranges3alleg5

Allegro 5 api

Usage

#include <allegro5/allegro_font.h>
int al_get_font_ranges(ALLEGRO_FONT *f, int ranges_count, int *ranges)

Overview

Gets information about all glyphs contained in a font, as a list of ranges. Ranges have the same format as with al_grab_font_from_bitmap(3alleg5).

ranges_count is the maximum number of ranges that will be returned.

ranges should be an array with room for ranges_count * 2 elements. The even integers are the first unicode point in a range, the odd integers the last unicode point in a range.

Returns the number of ranges contained in the font (even if it is bigger than ranges_count).

Since

5.1.4

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

From allegro5-doc 2:5.2.10.1+dfsg-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.