Fonts location in Windows for wkHTML2PDF

I am calling wkHTML2PDF in a Web App (via Shell) running on Windows Datacenter 2019 with HTML documents that contain a limited set of ~30 fonts.

I have downloaded these 30 fonts and placed them into the C:\Windows\Fonts\ directory. My problem is that some of the fonts are not being reflected in the resulting PDF file.

Is there some other location for fonts in Windows, or some way to force an application to see the local fonts?

FWIW, here are the fonts I am using:

myArray.AddRow("Andale Mono")
myArray.AddRow("Arial Black")
myArray.AddRow("Arial")
myArray.AddRow("Baskerville")
myArray.AddRow("Brush Script MT") 'not displaying in PDF
myArray.AddRow("Calibri") 'not displaying in PDF
myArray.AddRow("Calisto MT") 'not displaying in PDF
myArray.AddRow("Century Gothic") 'not displaying in PDF
myArray.AddRow("Comic Sans MS")
myArray.AddRow("Courier New")
myArray.AddRow("Courier")
myArray.AddRow("Didot")
myArray.AddRow("Garamond") 'can not displaying in PDF
myArray.AddRow("Georgia")
myArray.AddRow("Helvetica")
myArray.AddRow("Impact")
myArray.AddRow("Lucida Bright") 'not displaying in PDF
myArray.AddRow("Lucida Handwriting") 'not displaying in PDF
myArray.AddRow("Lucida Sans") 'can not displaying in PDF
myArray.AddRow("Luminari")
myArray.AddRow("Microsoft Sans Serif")
myArray.AddRow("Monaco")
myArray.AddRow("Optima")
myArray.AddRow("Palatino")
myArray.AddRow("Rockwell")
myArray.AddRow("Snell Roundhand")
myArray.AddRow("Tahoma")
myArray.AddRow("Times New Roman")
myArray.AddRow("Trebuchet MS")
myArray.AddRow("Verdana")

Are all these fonts TTF ?

No, but some are. Do Windows fonts have to be TTF’s to embed in a PDF?

I suspect Windows 2019 may not be able to support PostScript fonts without a plugin.

It is just a hunch.

I know OTF does not work properly

Precisely, OTF is postscript.

Not only do the newly installed fonts need to be TTF’s to work with wkHTML2PDF (and other apps), but you may need to inspect the Properties of these installed fonts, check on Unblock Security, and click the Apply button.

1 Like