We don't need get_string_width anymore

This commit is contained in:
Axel Wagner
2010-09-17 03:11:49 +02:00
parent 5deb95de33
commit 7fda48aa9f
3 changed files with 9 additions and 30 deletions

View File

@ -55,11 +55,11 @@ void draw_bars();
void redraw_bars();
/*
* Calculate the rendered width of a string with the configured font.
* Predicts the length of text based on cached data.
* The string has to be encoded in ucs2 and glyph_len has to be the length
* of the string (in width)
* of the string (in glyphs).
*
*/
int get_string_width(xcb_char2b_t *string, int glyph_len);
uint32_t predict_text_extents(xcb_char2b_t *text, uint32_t length);
#endif