stuff-from-scratch/test/fonts/TestFreeTypeFontEngine.cpp
2022-11-15 15:50:36 +00:00

19 lines
324 B
C++

#include "FreeTypeFontEngine.h"
#include "FontGlyph.h"
#include "Image.h"
#include <iostream>
int main()
{
FreeTypeFontEngine engine;
engine.initialize();
engine.loadFontFace("truetype/msttcorefonts/arial.ttf");
engine.loadGlyph('A');
engine.loadGlyph(66);
engine.loadGlyph(67);
return 0;
}