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.302 2004/05/27 21:24:37 _cvs_stephen Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.303 2004/05/31 23:01:52 _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:701:    return img;    }       if(args->fadein)    {    int amount=2, steps=10, delay=10, initialdelay=0, ox;    string res = img->gif_begin();    sscanf(args->fadein,"%d,%d,%d,%d", amount, steps, delay, initialdelay);    if(initialdelay)    { -  Image.Image foo=Image.Image(img->xsize(),img->ysize(),@parse_color(args->bgcolor)); +  Image.Image foo=Image.Image(img->xsize(),img->ysize(),@Colors.parse_color(args->bgcolor));    res += foo->gif_add(0,0,initialdelay);    }    for(int i = 0; i<(steps-1); i++)    {    Image.Image foo=img->clone();    foo = foo->apply_matrix(GText.make_matrix(( (int)((steps-i)*amount))));    res += foo->gif_add(0,0,delay);    }    res += img->gif_add(0,0,delay);    res += img->gif_end();
Roxen.git/server/modules/graphics/graphic_text.pike:725:    {    int len=100, steps=30, delay=5, ox;    string res = img->gif_begin() + img->gif_netscape_loop();    sscanf(args->scroll, "%d,%d,%d", len, steps, delay);    img=img->copy(0,0,(ox=img->xsize())+len-1,img->ysize()-1);    img->paste(img, ox, 0);    for(int i = 0; i<steps; i++)    {    int xp = i*ox/steps;    res += img->copy(xp, 0, xp+len, img->ysize(), -  @parse_color(args->bgcolor))->gif_add(0,0,delay); +  @Colors.parse_color(args->bgcolor))->gif_add(0,0,delay);    }    res += img->gif_end();    data = ({ res, ({ len, img->ysize() }) });    }       return    ([    "data":data[0],    "meta":    ([
Roxen.git/server/modules/graphics/graphic_text.pike:905:    p->font=id->misc->gtext_nfont;   #endif    if(id->misc->defines->afont && !p->nfont && !p->font && !p->afont)    p->afont=id->misc->gtext_afont;    if(id->misc->defines->bold && !p->bold) p->bold=id->misc->gtext_bold;    if(id->misc->defines->italic && !p->italic) p->italic=id->misc->gtext_italic;    if(id->misc->defines->black && !p->black) p->black=id->misc->gtext_black;    if(id->misc->defines->narrow && !p->narrow) p->narrow=id->misc->gtext_narrow;       if(p->afont) { -  p->font = roxen->fonts->verify_font( p->afont+" "+p->fontsize ); +  p->font = core->fonts->verify_font( p->afont+" "+p->fontsize );    if(!p->font) RXML.parse_error("Font "+p->afont+" could not be loaded.\n");    }    else {    string font = p->font; -  p->font = roxen->fonts->verify_font(p->font, p->fontsize||32); +  p->font = core->fonts->verify_font(p->font, p->fontsize||32);    if(!p->font) { -  RXML.parse_error("Font " + (font || roxen->query("default_font")) + +  RXML.parse_error("Font " + (font || core->query("default_font")) +    " could not be loaded.\n");    }    }       return p;   }      private string fix_text(string c, mapping m, RequestID id) {       if(m->nowhitespace)