the wkhtmltoimage program needs fonts to render pages. there should be a dependency to something like x11-fonts/xorg-fonts-truetype or xorg-fonts-type1 or both to provide those fonts. Fix: add run dependency for x11-fonts/xorg-fonts-truetype or perhaps just xorg-fonts to get all the fonts. I personally just use truetype and type1 sets. How-To-Repeat: install converters/wkhtmltopng package on a headless server (ie does not already have X11 on it) wkhtmltoimage http://www.freebsd.org fb.png the png file will have boxes for all characters. Install the fonts, and it looks like it should.
Responsible Changed From-To: freebsd-ports-bugs->freebsd-x11 Over to maintainer (via the GNATS Auto Assign Tool)
I can't find the mentioned port, converters/wkhtmltopng. However, this is an issue with that port, not with x11-fonts/xorg-fonts or any related x11@ ports. Regards! -- Niclas Zeising
Responsible Changed From-To: freebsd-x11->freebsd-ports-bugs Fix synopsis and punt back to the pool, this is not a x11 related issue.
Oops. I mistyped it. It should be wkhtmltopdf > On May 7, 2014, at 13:29, Niclas Zeising <zeising@freebsd.org> wrote: > > I can't find the mentioned port, converters/wkhtmltopng. > However, this is an issue with that port, not with x11-fonts/xorg-fonts > or any related x11@ ports. > Regards! > -- > Niclas Zeising
Retitle and assign to maintainer.
Is this still relevant?
I'll test if this can be fixed.
Tested with four sites, after removing font-bh-ttf encodings cantarell-fonts font-misc-meltho and xorg-fonts-truetype Sites still rendered fine. I'll close this ticket, and if we find a site that fails to render without xorg-fonts, we'll restart the investigation.
It just needs *some* fonts. Did you remove all fonts from the system? There's no way it can render anything if no fonts are installed. My original bug report shows exactly how to reproduce it. I just did it again on a completely different system than my original report. Start with a headless server that does not have X11 installed on it. A fresh install will do. pkg install wkhtmltopdf wkhtmltoimage http://www.freebsd.org fb.png When you view fb.png, it has no text, just boxes. I'm attaching the file it just produced right now.
Created attachment 194221 [details] example output on headless server I had to run the image through a png compressor to fit in the attachment size limit, so it is not exactly the same file produced, but visually it is the same.
Ok, I could reproduce the problem, after I deleted a few more fonts.
Committed, thanks!
A commit references this bug: Author: pi Date: Wed Jun 13 13:58:43 UTC 2018 New revision: 472325 URL: https://svnweb.freebsd.org/changeset/ports/472325 Log: converters/wkhtmltopdf: add run-dependency on x11-fonts/webfonts - otherwise characters are rendered as small blocks PR: 189424 Submitted by: Vick Khera <vivek@khera.org> Changes: head/converters/wkhtmltopdf/Makefile