move the rest of xft init into screen_conf, since most of it is based on
config parameters.
This commit is contained in:
13
font.c
13
font.c
@@ -30,19 +30,6 @@
|
||||
|
||||
#include "calmwm.h"
|
||||
|
||||
void
|
||||
font_init(struct screen_ctx *sc, const char *name)
|
||||
{
|
||||
sc->xftdraw = XftDrawCreate(X_Dpy, sc->rootwin,
|
||||
sc->visual, sc->colormap);
|
||||
if (sc->xftdraw == NULL)
|
||||
errx(1, "XftDrawCreate");
|
||||
|
||||
sc->xftfont = XftFontOpenName(X_Dpy, sc->which, name);
|
||||
if (sc->xftfont == NULL)
|
||||
errx(1, "XftFontOpenName");
|
||||
}
|
||||
|
||||
int
|
||||
font_width(XftFont *xftfont, const char *text, int len)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user