Move functions related to TTF creation into separate file.