Start font reading support.

This commit is contained in:
jmsgrogan 2022-07-31 20:01:13 +01:00
parent 92e7a78710
commit ed925afabf
22 changed files with 599 additions and 220 deletions

View file

@ -0,0 +1,17 @@
#include "TrueTypeFont.h"
#include "FontReader.h"
#include <iostream>
int main()
{
const auto font_path = "/usr/share/fonts/truetype/tlwg/TlwgTypo-Bold.ttf";
FontReader reader;
reader.setPath(font_path);
auto font = reader.read();
font->dumpInfo();
return 0;
}