stuff-from-scratch/test/fonts/TestFontReader.cpp
2022-12-01 10:52:48 +00:00

15 lines
306 B
C++

#include "TrueTypeFont.h"
#include "FontReader.h"
#include "TestFramework.h"
TEST_CASE(TestFontReader, "fonts")
{
const auto font_path = "/usr/share/fonts/truetype/tlwg/TlwgTypo-Bold.ttf";
FontReader reader;
reader.setPath(font_path);
auto font = reader.read();
font->dumpInfo();
}