Improve font file error handling