The drawing logic is platform-neutral (src/gfxterm.c) behind a small driver interface (src/gfxdrv.h), with one driver per platform: Text is rasterized once into a GPU glyph atlas and drawn as textured ...