blog/cpp/fonts/main.cpp

14 lines
256 B
C++
Raw Normal View History

2024-09-13 15:10:58 +08:00
#include "reader/file.h"
#include "core/font.h"
int main(int argc, char const *argv[])
{
/* code */
const char* fontFile = "/home/kun1h/fonts/fzmw.ttf";
file rd(fontFile);
font font;
font.read(&rd);
font.display();
return 0;
}