Refactoring TTF repair logic
Implements reparing of CFF table
Fail if other font types are found
Tests for OpenType fonts
Merge pull request #3386 from yurydelendik/ttf-refactor

Refactoring of TrueType code and implementation of OpenType font repairing