mising 2 important calls inthe font code... :)

SVN revision: 1169
This commit is contained in:
Carsten Haitzler 1999-11-04 09:02:58 +00:00
parent e1d3ba3366
commit e371b274e1
2 changed files with 35 additions and 2 deletions

View File

@ -286,7 +286,7 @@ void imlib_get_text_size(Imlib_Font font, Imlib_Text_Direction direction,
void imlib_add_path_to_font_path(char *path);
void imlib_remove_path_from_font_path(char *path);
char **imlib_list_font_path(int *number_return);
int imlib_text_get_index_and_location(Imlib_Font *font,
int imlib_text_get_index_and_location(Imlib_Font font,
Imlib_Text_Direction direction,
char *text, int x, int y,
int *char_x_return, int *char_y_return,
@ -297,6 +297,10 @@ void imlib_free_font_list(char **font_list, int number);
int imlib_get_font_cache_size(void);
void imlib_set_font_cache_size(int bytes);
void imlib_flush_font_cache(void);
int imlib_get_font_ascent(Imlib_Font font);
int imlib_get_font_descent(Imlib_Font font);
int imlib_get_maximum_font_ascent(Imlib_Font font);
int imlib_get_maximum_font_descent(Imlib_Font font);
/* image modification - color */
Imlib_Color_Modifier imlib_create_color_modifier(void);

View File

@ -1330,7 +1330,7 @@ imlib_list_font_path(int *number_return)
}
int
imlib_text_get_index_and_location(Imlib_Font *font,
imlib_text_get_index_and_location(Imlib_Font font,
Imlib_Text_Direction direction,
char *text, int x, int y,
int *char_x_return, int *char_y_return,
@ -1436,6 +1436,35 @@ imlib_flush_font_cache(void)
__imlib_purge_font_cache();
}
int
imlib_get_font_ascent(Imlib_Font font)
{
CHECK_PARAM_POINTER_RETURN("imlib_get_font_ascent", "font", font , 0);
return ((ImlibFont *)font)->ascent;
}
int
imlib_get_font_descent(Imlib_Font font)
{
CHECK_PARAM_POINTER_RETURN("imlib_get_font_descent", "font", font , 0);
return ((ImlibFont *)font)->descent;
}
int
imlib_get_maximum_font_ascent(Imlib_Font font)
{
CHECK_PARAM_POINTER_RETURN("imlib_get_maximum_font_ascent", "font", font , 0);
return ((ImlibFont *)font)->max_ascent;
}
int
imlib_get_maximum_font_descent(Imlib_Font font)
{
CHECK_PARAM_POINTER_RETURN("imlib_get_maximum_font_descent", "font", font , 0);
return ((ImlibFont *)font)->max_ascent;
}
Imlib_Color_Modifier
imlib_create_color_modifier(void)
{