Allow .otf as a valid file extension, too.
Make it easier to add further valid font file formats by using a private Array.
Also add method getFileExtension.
(edited)