popup: use system fonts exclusively

This commit is contained in:
2026-08-14 15:17:00 +09:00
parent 54355b8190
commit 08369e718e
14 changed files with 34 additions and 116 deletions

8
main.c
View File

@@ -5,13 +5,11 @@ Channel *drawc;
Channel *keyc;
Channel *dictreqc;
Channel *dictresc;
char **fontfiles;
int nfontfiles;
void
usage(void)
{
fprint(2, "usage: strans mapdir fontfile [fontfile ...]\n");
fprint(2, "usage: strans mapdir\n");
threadexitsall("usage");
}
@@ -51,11 +49,9 @@ erealloc(void *p, ulong n)
void
threadmain(int argc, char **argv)
{
if(argc < 3 || argc > Maxfonts + 2)
if(argc != 2)
usage();
fontfiles = argv + 2;
nfontfiles = argc - 2;
drawc = chancreate(sizeof(Drawcmd), 4);
keyc = chancreate(sizeof(Keyreq), 0);
dictreqc = chancreate(sizeof(Dictreq), 4);