I have resolved the issue because the font name is actually different from the file name. You need to obtain the real font name instead of using the font file name