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