renderer: use direct FreeType with explicit font files

This commit is contained in:
2026-08-13 20:40:38 +09:00
parent 125e9349c0
commit f46d51b539
16 changed files with 314 additions and 5201 deletions

5
win.c
View File

@@ -6,7 +6,8 @@ enum {
Asciitofull = 0xFEE0,
};
extern char *fontdir;
extern char **fontfiles;
extern int nfontfiles;
static xcb_connection_t *conn;
static xcb_screen_t *scr;
@@ -140,7 +141,7 @@ wininit(void)
mask = XCB_CW_BACK_PIXMAP;
xcb_change_window_attributes(conn, win, mask, &pix);
img = emalloc(Imgw * Imgh * sizeof(img[0]));
if(!fontinit(fontdir)){
if(!fontinit(fontfiles, nfontfiles)){
fprint(2, "strans: popup disabled: no usable fonts\n");
wincleanup();
return 0;