stuff-from-scratch/test/fonts/TestFontReader.cpp

18 lines
290 B
C++
Raw Normal View History

2022-07-31 19:01:13 +00:00
#include "TrueTypeFont.h"
#include "FontReader.h"
#include <iostream>
int main()
{
const auto font_path = "/usr/share/fonts/truetype/tlwg/TlwgTypo-Bold.ttf";
FontReader reader;
reader.setPath(font_path);
auto font = reader.read();
font->dumpInfo();
return 0;
}