Debian

如何把文字轉成圖片


步驟如下:

$ cd
$ sudo apt-get install ttf-bitstream-vera python-pygmentize python-pil -y

測試

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char** argv)
{
  return 0;
}

轉換

$ pygmentize -o test.png test.c

完成


返回上一頁