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

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1:   // This is a roxen module. Copyright © 1996 - 2000, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.216 2000/03/18 19:04:11 per Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.217 2000/03/18 19:11:01 per Exp $";      #include <module.h>   inherit "module";   inherit "roxenlib";         // ------------------- Module registration ---------------------      constant module_type = MODULE_PARSER;   constant module_name = "Graphics text";
Roxen.git/server/modules/graphics/graphic_text.pike:694:    "tile",    "textbox",    "textbelow",    "textscale",    "verbatim",    "xpad",    "xsize",    "xspacing",    "ypad",    "ysize", -  "yspacing" +  "yspacing", +  "border",       /* generic argcache arguments */    "crop",    "format",    "quant",    "dither",    "fs",    "*-*",    "gamma",   
Roxen.git/server/modules/graphics/graphic_text.pike:719:   constant hreffilter=(["split":1,"magic":1,"noxml":1,"alt":1]);      mapping mk_gtext_arg(mapping arg, RequestID id)   {    mapping p=([]); //Picture rendering arguments.       m_delete(arg,"src");    m_delete(arg,"width");    m_delete(arg,"height");    -  foreach(filearg, string tmp) -  if(arg[tmp]) { +  foreach(filearg + textarg, string tmp) +  if(arg[tmp]) +  {    p[tmp]=fix_relative(arg[tmp],id);    m_delete(arg,tmp);    }    -  if(arg->border && search(arg->border,",")) { -  p->border=arg->border; -  m_delete(arg,"border"); -  } + // if(arg->border && (search(arg->border,",")!=-1)) + // { + // p->border=arg->border; + // m_delete(arg,"border"); + // }       array i = indices( arg );    foreach(textarg, string tmp)    foreach( glob( tmp, i ), string a )    { -  +  werror("found "+a+" "+arg[a]+"\n");    p[a]=arg[a]; // ,id -  +  i-=({a});    m_delete(arg,a);    }       foreach(theme, string tmp)    if( (id->misc->defines[tmp] || id->misc->defines["theme_"+tmp]) && !p[tmp])    p[tmp]=id->misc->defines["theme_"+tmp] || id->misc->defines[tmp];       if(!p->fgcolor) p->fgcolor="#000000";    if(!p->bgcolor) p->bgcolor="#ffffff";