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

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1: - constant cvs_version="$Id: graphic_text.pike,v 1.81 1997/09/26 17:39:18 grubba Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.82 1997/09/26 17:49:20 grubba Exp $";   constant thread_safe=1;      #include <module.h>   inherit "module";   inherit "roxenlib";      #if efun(_static_modules)   # define map_array Array.map   import Image;   # define Image image
Roxen.git/server/modules/graphics/graphic_text.pike:1139:    break;    case "anfang":    gt=contents[0..0]; rest=contents[1..];    pre="<br clear=left>"; post=""; defalign="left";    break;    }       if(split)    {    string word; -  array res = ({pre}); -  string pre = query_location()+num+"/"; +  array res = ({ pre }); +  string pre = query_location() + num + "/";       if(lp) res+=({ lp });       gt=replace(gt, "\n", " ");       foreach(gt/" "-({""}), word)    {    if (split != " ") {    array arr = word/split;    int i;    for (i = sizeof(arr)-1; i--;) {    arr[i] += split;    }    if (arr[-1] == "") {    arr = arr[..sizeof(arr)-2];    }    foreach (arr, word) {    array size = write_text(num,word,1,id); -  res += ({ "<img _parsed=1 border=0 alt=\""+replace(word,"\"","'") -  +"\" src=\""+pre+quote(word)+"\" width="+ -  size[0]+" height="+size[1]+" "+ea+">\n" +  res += ({ "<img _parsed=1 border=0 alt=\"" + +  replace(arg->alt || word, "\"", "'") + +  "\" src=\"" + pre + quote(word) + "\" width=" + +  size[0] + " height=" + size[1] + " " + ea + ">"    });    } -  +  res += ({"\n"});    } else {    array size = write_text(num,word,1,id); -  res += ({ "<img _parsed=1 border=0 alt=\""+replace(word,"\"","'") -  +"\" src=\""+pre+quote(word)+"\" width="+ -  size[0]+" height="+size[1]+" "+ea+">\n" +  res += ({ "<img _parsed=1 border=0 alt=\"" + +  replace(arg->alt || word, "\"", "'") + +  "\" src=\"" + pre + quote(word) + "\" width=" + +  size[0] + " height=" + size[1] + " " + ea + ">\n"    });    }    } -  if(lp) res+=({ "</a>"+post }); +  if(lp) res += ({ "</a>"+post });    return res*"";    }       array size = write_text(num,gt,1,id);    if(!size) {    return ("<font size=+1><b>Missing font or other similar error -- "    "failed to render text</b></font>");    }    if(magic)    {