[Gllug] Making menu images from text: Solution

robin.c.smith at bt.com robin.c.smith at bt.com
Mon Feb 4 16:38:35 UTC 2002


The power of the internet! Are you going to put it on sourceforge :-)

Thanks

Robin

-----Original Message-----
From: tet at accucard.com [mailto:tet at accucard.com]
Sent: 04 February 2002 16:23
To: gllug at linux.co.uk
Subject: Re: [Gllug] Making menu images from text: Solution 



>Changes required:-
>
>1. Use getopt to read input parameters
>2. Check for errors
>3. Check that text is not bigger than menu picture
>
>Any one feeling bored enough to fix these changes?

Yep, here you go. The fonts still suck, but that could be cured by using
pbmtext rather than ppmlabel, assuming you can find a bitmapped font you
like.

If the text you use is very long, then the program runs very slowly,
due to the fact that it's exceedingly generous when allowing for maximum
button widths, and manipulating large images is slow...

Pipe the output into cjpeg or pnmquant/pnmtopng etc to get a suitable
final image.

Tet


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list