Re: X11 fonts when rendering to TIFF
Bob Friesenhahn <[email protected]>
| Newsgroups | gmane.comp.video.graphicsmagick.help |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 28 Nov 2017, Neil Youngman wrote: > When rendering a simple plain text file to TIFF, can I get it to use a BDF or > PCF font? > > gm convert -font /path/to/font.bdf /tmp/sample.txt /tmp/sample.tif > > give me an error. The error is eliminated by using x:/path/to/font.bdf, but > it clearly isn't using the requested font. If FreeType is not used to render a font, then it needs to be rendered via the X11 server. This means that the X11 server would need to know about the fonts. You would need to use X11 server mechanisms (e.g. 'xset +fp=pathlist') to add the fonts so that the X11 server can use them. Then there is a possibility to be used with GraphicsMagick. Fonts which can be used can be listed like: xlsfonts | grep '^-' Even then, it is likely that only fonts with a specified point-size (not scalable fonts) can be used. Using fonts that FreeType can render is definitely recommended. Bob -- Bob Friesenhahn [email protected], http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot