[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: replacement of gfont using TrueType fonts
- From: Remco van den Berg <nospam@thanx>
 
- Date: Wed, 27 Oct 1999 23:02:52 +0200 (CEST)
 
barbier@imacs.polytechnique.fr wrote:
> 
> Hi Remco,
> 
> here are some comments (i didn't try it yet):
> * You could take the documentation from wml::des::gfont
>   (and also put a line in ttfont.wml to say it is derived from
>   gfont.wml ;)
I agree... :-)
> * The TrueType directory is hardcoded in ttfont.wml, it's a bad
>   idea. Determine it at configure time.
It's also hard coded in webbutton! I know, it's not nice. But for
the time being, it works... :-)
Is there somebody who knows how to detect the font directory using
autoconf/automake?
Otherwise I make a global config.h file with the local settings.
> * Same thing in the configure script.
What's wrong with the configure script? It's auto generated.
> * I already wanted to add some borders to gFONT generated images.
>   You had one kind of border in ttfont, but sometimes one wants
>   shaded effects.
>   Do you think it should be done by the logo generator or by a
>   call to another program (ImageMagick?)
I also thought about that (of course :-). There are several solutions.
Two you already mentioned, but another idee is to put text on some
template image and tell webbutton where the template image is on disk.
> * Could ttfont write PNG files too ?
Yes, either patch the webbutton.c file (very easy, just look at the code
and have a look at de gd-1.6.3-patched/index.html). Or even better, make
it dependent on the image file-extension, so that it works automatically.
But that's my job then. Perhaps an extra option could be included too to
force a file type.
Thanks,
I'll work on these things...
Regards,
-Remco
----------------------------------------------------------------------------
Philips Semiconductors B.V.  tel:(+31 40 27)22031   fax:22764   Room: BE-345
mailto:Remco.vdBerg@ehv.sc.philips.com                  seri: rvdberg@nlsce1
home Email: RvdBerg@dse.nl  (non Philips related)              ICQ: 47514668
----------------------------------------------------------------------------
 Microsoft and Lotus Notes free.  Please don't send me any Microsoft files.
----------------------------------------------------------------------------
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com