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 - 2009, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.313 2010/04/27 13:36:56 grubba Exp $"; + constant cvs_version="$Id$";      #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:432: Inside #if defined(manual)
  </attr>      <attr name='seconds' value='number'><p>   Add this number of seconds to the time this entry is valid.</p>   </attr>";         constant tagdoc=([   "anfang":#"<desc type='cont'><p><short>    Creates an anfang in the beginning of a text.</short> This tag takes -  the same attributes as <xref href='gtext.tag' />.</p> +  the same attributes as <xref href='gtext.tag' />. </p>       <ex>    <anfang crop=\"\">This is a beginning<br />    of a very short text,<br />    and here it ends.    </anfang>    </ex>   </desc>   <noex>"+gtextargs+"</noex>",   
Roxen.git/server/modules/graphics/graphic_text.pike:589: Inside #if defined(manual)
  <form onsubmit='return alter_image(this.label);'>   <input type='text' size='40' name='label' />   </form></ex-box></desc>      <attr name='short'><p>    Returns a relative path to the image, i.e. a shorter one.   </p>   </attr>"+gtextargs,      "gtext-js":#"<desc tag='tag'><p><short> -  Inserts javascript funcations that are used by gtext when using +  Inserts javascript functions that are used by gtext when using    the magic attributes.</short>    This is normally inserted at the first instance of a gtext, but it may    be necessary to insert the gtext using this tag if the first gtext in a page    may be hidden, for example if contained in an if tag.    </p>   </desc>",      "gtext-url":#"<desc type='cont'><p><short>    Returns an internal URL to an image with the specified attributes    applied.</short></p>
Roxen.git/server/modules/graphics/graphic_text.pike:743:    font = get_font(args->font,    (int)args->fontsize||32,    bold,    italic,    lower_case(args->talign||"left"),    xpad,    ypad);    }       if (!font) -  error("gtext: No font (tried "+ +  RXML.parse_error("gtext: No font (tried "+    (args->afont||args->font||args->nfont)+ ")!\n");       // Fonts and such are now initialized.    array|mapping make_res = GText.make_text_image(args, font, text, id);    if (mappingp(make_res))    return make_res;    [img, Image.Image alpha] = make_res;       // Now we have the image in 'img'.   
Roxen.git/server/modules/graphics/graphic_text.pike:977: Inside #if constant(Image.GIF) && constant(Image.GIF.encode)
   if (!arg->format)   #if constant(Image.GIF) && constant(Image.GIF.encode)    arg->format = "gif";   #else    arg->format = "jpg";   #endif       foreach(filearg, string tmp)    if(string path = arg[tmp])    { +  // Reject empty file paths for sufficiently high compat_level +  if (path == "" && compat_level >= "5.2") +  RXML.parse_error("Empty " + tmp + " attribute not allowed."); +     if (!has_prefix(tmp, "magic-")) {    p[tmp] = Roxen.fix_relative(path, id);    p[tmp + "_stat"] = get_file_stat(path, id);   #if constant(Sitebuilder)    // The file we called get_file_stat() on above may be a SiteBuilder    // file. If so we need to extend the argument data with e.g.    // current language fork.    if (Sitebuilder.sb_prepare_imagecache)    p = Sitebuilder.sb_prepare_imagecache(p, path, id);   #endif