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

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1:   // This is a ChiliMoon module. Copyright © 1996 - 2001, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.305 2004/06/04 08:29:21 _cvs_stephen Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.306 2004/06/04 08:33:17 _cvs_stephen Exp $";      #include <module.h>   inherit "module";         // ------------------- Module registration ---------------------      constant module_type = MODULE_TAG;   constant module_name = "Graphics: Graphic text";   constant module_doc =
Roxen.git/server/modules/graphics/graphic_text.pike:635:    res+=(nspace==cspace?nspace:" ")+word;       if(cspace!="")    nspace=cspace;    else    nspace=" ";    }    res+="\n";    }    -  text=replace(res[..strlen(res)-2], ({"!","?",": "}),({ nbsp+"!",nbsp+"?",nbsp+": "})); +  text=replace(res[..sizeof(res)-2], ({"!","?",": "}),({ nbsp+"!",nbsp+"?",nbsp+": "}));    text=replace(replace( replace(text,({". ",". "+nbsp}),({"\000","\001"})),    ".", "."+nbsp+nbsp),    ({"\000","\001"}),({". ","."+nbsp}));    }       if( args->afont )    font = resolve_font(args->afont+" "+args->fontsize);    else    {    int bold=0, italic=0;
Roxen.git/server/modules/graphics/graphic_text.pike:744:    "xsize":data[1][0],    "ysize":data[1][1],    "type":(args->format?id->conf->type_from_filename("x."+args->format):"image/png"),    ])    ]);   }      mapping find_internal(string f, RequestID id)   {    if( sizeof(f)>4 && query("ext") && f[-4]=='.') // Remove .ext -  f = f[..strlen(f)-5]; +  f = f[..sizeof(f)-5];    if( sizeof(f) && f[0]=='$' )    {    array id_text = f/"/";    if( sizeof(id_text)==2 )    { // It's a gtext-id    string second_key = core.argcache->store( (["":id_text[1]]) );    return image_cache->http_file_answer( id_text[0][1..] +"$"+ second_key, id );    }    }    return image_cache->http_file_answer( f, id );