stuff-from-scratch/test/fonts/TestFontReader.cpp
2022-07-31 20:01:13 +01:00

17 lines
290 B
C++

#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;
}