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

20 lines
369 B
C++
Raw Normal View History

2022-11-10 20:35:00 +00:00
#include "FreeTypeFontEngine.h"
2022-11-15 15:50:36 +00:00
#include "FontGlyph.h"
2022-11-15 09:32:28 +00:00
#include "Image.h"
2022-11-10 20:35:00 +00:00
2022-11-29 18:00:19 +00:00
#include "TestFramework.h"
2022-11-10 20:35:00 +00:00
#include <iostream>
2022-11-29 18:00:19 +00:00
TEST_CASE(TestFreeTypeFontEngine, "fonts")
2022-11-10 20:35:00 +00:00
{
FreeTypeFontEngine engine;
2022-11-14 17:27:24 +00:00
engine.initialize();
2022-11-10 20:35:00 +00:00
2022-11-14 17:27:24 +00:00
engine.loadFontFace("truetype/msttcorefonts/arial.ttf");
engine.loadGlyph('A');
engine.loadGlyph(66);
engine.loadGlyph(67);
2022-11-10 20:35:00 +00:00
}