---
name: "get_font_range_begin"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/get_font_range_begin"
---

# get\_font\_range\_begin(3alleg)

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

## NAME

get\_font\_range\_begin - Returns the start of a character range in a font. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**int get\_font\_range\_begin(FONT \*f, int range)**

## DESCRIPTION

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.

## SEE ALSO

[**get\_font\_ranges**(3alleg)](/get_font_ranges/3alleg.md), [**get\_font\_range\_end**(3alleg)](/get_font_range_end/3alleg.md), [**transpose\_font**(3alleg)](/transpose_font/3alleg.md)
