Font related refactoring

Mainly refactoring, not real and wow changes
PDFFunction improvements

Increased PDFFunction supported features