Functions

Font

Functions

int kate_font_get_index_from_code_point (const kate_font_mapping *kfm, int c)

Function Documentation

int kate_font_get_index_from_code_point ( const kate_font_mapping kfm,
int  c 
)

Returns the index of the bitmap which corresponds to the given code point, if any.

Parameters:
kfm the font mapping to search
c the code point to search for
Returns:
0 success
KATE_E_* error

References kate_font_range::first_bitmap, kate_font_range::first_code_point, kate_font_mapping::nranges, and kate_font_mapping::ranges.