Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
kenthudson Absent Member.
Absent Member.

C$PDF Loading TrueType Fonts

Trying to load true type fonts with C$PDF using the following line of code and receiving the error message "invalid or missing parameter"

call "C$PDF" using HPDF-LOADTTFONTFROMFILE HPDF-DOC, "C:/windows/fonts/arial.ttf", HPDF-TRUE

Hoping someone has load true type fonts before and can assist with an example.

I did notice on the haru documentation that HPDF_LoadTTFontFromFile returns a font name and the Extend documentation doesn't appear to support the font name return.



1 Reply
Micro Focus Expert
Micro Focus Expert

RE: C$PDF Loading TrueType Fonts

01 detail-font-name pic x(128) .
01 embed-font-arg pic x(2).
call "C$PDF" using HPDF-LoadTTFontFromFile, HPDF-Doc,
detail-font-filename, embed-font-flag, detail-font-name
call "C$PDF" using HPDF-LoadTTFontFromFile, HPDF-Doc,
"C:/windows/fonts/arial.ttf", "-e", detail-font-name
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.