Add TTF bugfix functions to resolve GitHub issue #50.