I added support for Helvetica, Courier and Times-Roman in UTF-8 encoded documents. The HaruPDF library for UTF-8 encoded documents only allows to use TTF. I exchange the Helvetica, Courier and Times-Roman fonts for their similar TTF equivalents (Arial, Courier New, Times New Roman).
Since the _HMG_HPDF_SeekTTFFont() function reads the declared decoding of the document with the SET HPDFDOC ENCODING TO command, it should be called only after this declaration. Otherwise, it will not "know" the encoding of the PDF document.
HMG Samples and Enhancements