Implement font loading

Follow up on #181. Relevant for #53.

Compared to #181, this frees the no longer needed font data, doesn't not crash anymore and is updated to the new build system.