sdl pcf
0.0.1
您是否曾經為基於SDL的項目想要Perfect-Perfect-Perfect Bitmap字體嗎?不再搜索,解決方案就在這裡!

SDL_PCF可讓您使用包括Terminus在內的數千個X11位圖字體。它使用經過驗證的PCF格式處理代碼直接從最新的LibxFont發行版中,該代碼量身定制和適應SDL。
使用PCF字體很簡單:
PCF_Font * font ;
font = PCF_OpenFont ( "ter-x24n.pcf.gz" );
PCF_FontWrite ( font , "Hello world !" , white , screenSurface , & location );您只需要包括sdl_pcf.h,然後使用sdl2_pcf調用pkg-config。
完整的文檔可以在此處找到。
演示代碼是在測試/可以使用Make在UNIX上構建的:
$ make check
$ ./test/ayba
# press <ESC> to quit