Welcome to SDL_pcf’s documentation!

With SDL_pcf you can know easily use pixel-perfect bitmap fonts with SDL2:

  • Use thousands of existing X11 bitmap fonts, including terminus
  • Direct-to-surface writing (no temp surface needed)
  • Hardware-accelerated rendering supported with SDL2 Renderer API or SDL_gpu

Using PCF fonts is as simple as:

PCF_Font *font;
font = PCF_OpenFont("ter-x24n.pcf.gz");
PCF_FontWrite(font, "Hello world !", white, screenSurface, &location);

Indices and tables