Roxen.git / server / modules / graphics / graphic_text.pike

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1: - string cvs_version="$Id: graphic_text.pike,v 1.17 1996/12/10 04:21:11 per Exp $"; + string cvs_version="$Id: graphic_text.pike,v 1.18 1996/12/10 04:40:34 per Exp $";   #include <module.h>   inherit "module";   inherit "roxenlib";         array register_module()   {    return ({ MODULE_LOCATION | MODULE_PARSER,    "Graphics text",    "Makes a few new tags, which render text to gifs "
Roxen.git/server/modules/graphics/graphic_text.pike:402:    object id)   {    object img;    mapping args = cached_args[_args];       if(!args) return 0;       text = replace(text, ({ "&lt;", "&gt;", "&amp;" }), ({ "<", ">", "&" }));       // Check the cache first.. -  if(!id /*|| (!id->pragma["no-cache"])*/) +     if(mixed data = cache_lookup("gtext:"+(_args-_start), text))    {    if(size) return data[1];    return data[0];    }    // Nothing found in the cache. Generate a new image.             string key = args->font+args->justift+":"+args->xpad+":"+args->ypad;