diff options
-rw-r--r-- | st.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3291,7 +3291,7 @@ xloadfont(Font *f, FcPattern *pattern) | |||
3291 | 3291 | ||
3292 | XftTextExtentsUtf8(xw.dpy, f->match, | 3292 | XftTextExtentsUtf8(xw.dpy, f->match, |
3293 | (const FcChar8 *) ascii_printable, | 3293 | (const FcChar8 *) ascii_printable, |
3294 | LEN(ascii_printable), &extents); | 3294 | strlen(ascii_printable), &extents); |
3295 | 3295 | ||
3296 | f->set = NULL; | 3296 | f->set = NULL; |
3297 | f->pattern = FcPatternDuplicate(pattern); | 3297 | f->pattern = FcPatternDuplicate(pattern); |
@@ -3302,7 +3302,7 @@ xloadfont(Font *f, FcPattern *pattern) | |||
3302 | f->rbearing = f->match->max_advance_width; | 3302 | f->rbearing = f->match->max_advance_width; |
3303 | 3303 | ||
3304 | f->height = f->ascent + f->descent; | 3304 | f->height = f->ascent + f->descent; |
3305 | f->width = DIVCEIL(extents.xOff, LEN(ascii_printable)); | 3305 | f->width = DIVCEIL(extents.xOff, strlen(ascii_printable)); |
3306 | 3306 | ||
3307 | return 0; | 3307 | return 0; |
3308 | } | 3308 | } |