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.257 2001/01/03 13:49:50 nilsson Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.258 2001/01/13 18:16:31 nilsson Exp $";      #include <module.h>   inherit "module";         // ------------------- Module registration ---------------------      constant module_type = MODULE_TAG;   constant module_name = "Graphic text";   constant module_doc =
Roxen.git/server/modules/graphics/graphic_text.pike:326: Inside #if defined(manual)
   Tiles the background and foreground images if they are smaller than    the actual image.   </attr>      <attr name=verbatim>    Allows the gtext parser to not be typographically correct.   </attr>      <attr name=xpad value=percentage|integer>    Sets the padding between characters. The value can either be an relative change, in percent, or -  an absolute value. Not that different fonts reacts differently on these values and for some it -  will not have any effect at all. This depends on the type of the font and the fonts implementation. +  an absolute value. Note that different fonts reacts differently on these values and for some it +  will not have any effect at all. This depends on the type of the font and the font implementation.   <ex type=vert> - <gtext xpad=\"-30%\" scale=\"0.6\">&lt;gtext xpad=-30%&gt;</gtext><br /> - <gtext xpad=\"-10%\" scale=\"0.6\">&lt;gtext xpad=-10%&gt;</gtext><br /> - <gtext scale=\"0.6\">&lt;gtext&gt;</gtext><br /> - <gtext xpad=\"10%\" scale=\"0.6\">&lt;gtext xpad=10%&gt;</gtext><br /> - <gtext xpad=\"30%\" scale=\"0.6\">&lt;gtext xpad=30%&gt;</gtext><br /> + <gtext font=\"niquel\">&lt;gtext xpad=-30%&gt;</gtext><br /> + <gtext xpad=\"4\" font=\"niquel\">&lt;gtext xpad=-10%&gt;</gtext><br /> + <gtext xpad=\"50%\" font=\"niquel\">&lt;gtext&gt;</gtext><br />   </ex>   </attr>      <attr name=xsize value=number>    Sets the width.   </attr>      <attr name=xspacing value=number>    Sets the horizontal spacing.   </attr>
Roxen.git/server/modules/graphics/graphic_text.pike:675:    ([    "xsize":data[1][0],    "ysize":data[1][1],    "type":(args->format?id->conf->type_from_filename("x."+args->format):"image/gif"),    ])    ]);   }      mapping find_internal(string f, RequestID id)   { -  catch -  { +     if( strlen(f)>4 && query("ext") && f[-4]=='.') // Remove .ext    f = f[..strlen(f)-5];    if( strlen(f) && f[0]=='$' )    {    array id_text = f/"/";    if( sizeof(id_text)==2 )    { // It's a gtext-id    string second_key = roxen->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 ); -  }; +     return 0;   }         // -------------- helpfunctions to gtext tags and containers -----------------      constant filearg=({"background","texture","alpha","magic-texture","magic-background","magic-alpha"});   constant textarg=({"afont",    "alpha",    "bevel",
Roxen.git/server/modules/graphics/graphic_text.pike:838:    m_delete(m, "nowhitespace");    }       m_delete(m, "noparse");    m_delete(m, "preparse");       c=replace(c, Roxen.replace_entities+({" "," ", "\n\n\n", "\n\n", "\r"}),    Roxen.replace_values+({" ", " ", "\n", "\n", ""}));       if(m->maxlen) -  c = c[..(( (int)m_delete(m,"maxlen") || QUERY(deflen))-1)]; +  c = c[..(( (int)m_delete(m,"maxlen") || query("deflen"))-1)];       return c;   }         // ----------------- gtext tags and containers -------------------      class TagGTextURL {    inherit RXML.Tag;    constant name = "gtext-url";