Andr? van Toly <[EMAIL PROTECTED]> skribis:
> I found this example with the <mm:image> tag in the  MMBase taglib 
> documentation 
> <http://design.mmbase.org:8070/testing/mmdocs/taglib/image.jsp>:
> 
> 
>s(200x200!)+font(mm:fonts/Arial.ttf)+fill(ffffff)+pointsize(20)+gravity(NorthEast)+text(0,20,'MM
> 
> Base')
> 
> Is it really possible to use fonts with ImageMagick like in this example?

Yes.

http://mihxil.komputilo.org/mm/test/imagetext.jsp for a small demonstration
(if the server is up)

image magic version must be fairly recent though (I think > 1.5.4 or
similar) and it must be compiled with freetype support and so on.

I created also this possibility to put e.g. ttf-fonts in the mmbase
configuration dir, but of course you can also use the 'normal' imagemagic
way (with .mgk files). I think you can even put such an mgk file in the
mmbase configuration dir.

You need also a recent version of MMBase (>= 1.6.0).



 Michiel


-- 
% Michiel Meeuwissen
% [EMAIL PROTECTED]
% http://www.purl.org/NET/mihxil/
% Vidu ankaux: http://www.uea.org/katalogo

Reply via email to