check the fd for hz_file

It will print a warning when failed to open the font file.

Reported-by: prife, 文哥 and wnnwoo