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

19 lines
369 B
C++

#include "FreeTypeFontEngine.h"
#include "FontGlyph.h"
#include "Image.h"
#include "TestFramework.h"
#include <iostream>
TEST_CASE(TestFreeTypeFontEngine, "fonts")
{
FreeTypeFontEngine engine;
engine.initialize();
engine.loadFontFace("truetype/msttcorefonts/arial.ttf");
engine.loadGlyph('A');
engine.loadGlyph(66);
engine.loadGlyph(67);
}