forked from old/legacy-imlib2
mising 2 important calls inthe font code... :)
SVN revision: 1169
This commit is contained in:
parent
e1d3ba3366
commit
e371b274e1
|
@ -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);
|
||||
|
|
31
src/api.c
31
src/api.c
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue