stuff-from-scratch/test/fonts/TestFontReader.cpp
2022-11-29 18:00:19 +00:00

17 lines
327 B
C++

#include "TrueTypeFont.h"
#include "FontReader.h"
#include <iostream>
#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();
}