You are not logged in.

#1 2009-03-06 10:48:41

bsdson.tw
Member
From: Taiwan
Registered: 2005-05-06
Posts: 161

how to generate an image of some text in a specified font...

Hi,

What I want is to customize the thumbnails of fonts in Thunar (XFCE's default file manager).

In Thunar, a thumbnailer for fonts is built, but only a sample of these 2 letters, an "a" and an capitalized "a", is generated,
which is far from informative.

So I want to customize the text in the sample image.

The thumbnailer from Thunar is "/usr/lib/thunar-vfs-font-thumbnailer-1", which do not accept arguments about sample text.
So one way is to modify this program, or, which is what I preferred,
to find some other utilities to replace it in Thunar thumbnailer plug-in mechanism...

But I cannot find one utility like ttf-sampler, to generate images of text in a specified font.
Can anyone who has some clues tell me about that?

BR,
Henry

Last edited by bsdson.tw (2009-03-06 10:50:55)

Offline

#2 2009-03-06 15:09:04

FeatherMonkey
Member
Registered: 2007-02-26
Posts: 313

Re: how to generate an image of some text in a specified font...

convert -list font

http://www.imagemagick.org/Usage/text/

 convert -background lightblue -fill blue -font URW-Palladio-Bold-Italic -pointsize 72 label:"What we want to write" label.gif

Offline

Board footer

Powered by FluxBB