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

16 lines
306 B
C++
Raw Normal View History

2022-07-31 19:01:13 +00:00
#include "TrueTypeFont.h"
#include "FontReader.h"
2022-11-29 18:00:19 +00:00
#include "TestFramework.h"
TEST_CASE(TestFontReader, "fonts")
2022-07-31 19:01:13 +00:00
{
const auto font_path = "/usr/share/fonts/truetype/tlwg/TlwgTypo-Bold.ttf";
FontReader reader;
reader.setPath(font_path);
auto font = reader.read();
font->dumpInfo();
}