Start font reading support.
This commit is contained in:
parent
92e7a78710
commit
ed925afabf
22 changed files with 599 additions and 220 deletions
17
test/fonts/TestFontReader.cpp
Normal file
17
test/fonts/TestFontReader.cpp
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue