Use Xft for font loading and text drawing

This commit is contained in:
Bert Münnich
2016-08-06 15:27:58 +02:00
parent aabc2bddbd
commit c280129cef
8 changed files with 56 additions and 98 deletions

4
main.c
View File

@ -386,8 +386,8 @@ void update_info(void)
if (ow_info) {
fn = strlen(files[fileidx].name);
if (fn < l->size &&
win_textwidth(files[fileidx].name, fn, true) +
win_textwidth(r->buf, r->p - r->buf, true) < win.w)
win_textwidth(&win.env, files[fileidx].name, fn, true) +
win_textwidth(&win.env, r->buf, r->p - r->buf, true) < win.w)
{
strncpy(l->buf, files[fileidx].name, l->size);
} else {