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.228 2000/04/06 07:41:44 wing Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.229 2000/04/29 20:26:58 kuntri Exp $";      #include <module.h>   inherit "module";   inherit "roxenlib";         // ------------------- Module registration ---------------------      constant module_type = MODULE_PARSER;   constant module_name = "Graphic text";   constant module_doc =   #"Provides the <tt>&lt;gtext&gt;</tt> that is used to generate text into   graphical images.";   constant thread_safe = 1;      void create()   {    defvar("colorparse", 1, "Parse tags for document colors", TYPE_FLAG, -  "If set, it will use the <i>HTML color wiretrap</i> module to parse " +  "If set, it will use the <i>HTML color wiretrap</i> module to "    "figure out the document colors by parsing tags that set colors.");       defvar("deflen", 300, "Default maximum length of text", TYPE_INT|VAR_MORE,    "Per default, it will not be possible to render texts longer than "    "this. This is a safeguard so that a simple RXML error doesn't "    "cause a huge image to be generated. It can be turned of at a per "    "tag bases, with the <i>maxlen</i> attribute.");       defvar("ext", 0, "Append format to generated images",    TYPE_FLAG|VAR_MORE,
Roxen.git/server/modules/graphics/graphic_text.pike:102: Inside #if defined(manual)
  opaque=70</gtext>    </ex>   </attr>      <attr name=crop>    Remove all white-space around the image   </attr>      <attr name=encoding value=string>    Choose with which charset the text is encoded with. - </attr> + </attr>"+    - <attr name=fadein value=blur,steps,delay,initialdelay> -  Generates an animated GIF file of a fade-in effect. - </attr> + //<attr name=fadein value=blur,steps,delay,initialdelay> + // Generates an animated GIF file of a fade-in effect. + //</attr>    - <attr name=fgcolor value=color> + #"<attr name=fgcolor value=color>    Sets the text color.    <ex type=vert>   <gtext fgcolor=\"#0080FF\">#0080FF</gtext>    </ex>   </attr>      <attr name=font value=string>      </attr>   
Roxen.git/server/modules/graphics/graphic_text.pike:266: Inside #if defined(manual)
  <attr name=scale value=number>    Sets the scale of the image. Larger than 1.0 is enlargement.    <ex type=vert>   <gtext scale=\"1.0\">&lt;gtext scale=1.0&gt;</gtext>   <gtext scale=\"0.5\">&lt;gtext scale=0.5&gt;</gtext>    </ex>   </attr>      <attr name=scolor value=color>    Use this color for the shadow. Used with the shadow attribute. - </attr> + </attr>"+    - <attr name=scroll value=width,steps,delay> -  Generate an animated GIF image of the text scrolling. - </attr> + //<attr name=scroll value=width,steps,delay> + // Generate an animated GIF image of the text scrolling. + //</attr>    - <attr name=shadow value=intensity,distance> + #"<attr name=shadow value=intensity,distance>    Draw a blured black drop-shadow behind the text. Using 0 as distance    does not currently place the shadow directly below the text. Using negative    values for distance is possible,    <ex type=vert>   <gtext scale=\"0.8\" fgcolor=\"blue\" shadow=\"40,0\">&lt;gtext shadow=40,0&gt;</gtext><br />   <gtext scale=\"0.8\" fgcolor=\"blue\" shadow=\"40,2\">&lt;gtext shadow=40,2&gt;</gtext><br />    </ex>   </attr>      <attr name=size value=width,height>
Roxen.git/server/modules/graphics/graphic_text.pike:418: Inside #if defined(manual)
   Link the image to the specified URL. The link color of the document    will be used as the default foreground rather than the foreground    color.   </attr>      <attr name=magic value=message>    Used together with the href attribute to generate a JavaScript that    will highlight the image when the mouse is moved over it. The message    is shown in the browser's status bar.    <ex type=vert> - <gtext href=\"http://www.roxen.com\" magic=\"Roxen\">www.roxen.com</gtext> + <gtext href=\"http://www.roxen.com\" magic=\"Roxen\" magic-fgcolor=\"red\">www.roxen.com</gtext>    </ex>   </attr>      <attr name=magic-attribute value=value> Same as for any    <tag>gtext</tag> attribute, except for the highlighted image.    <ex type=vert> - <gtext fgcolor=\"blue\" magic-glow=\"yellow\" magic=\"\">Magic_attribute</gtext> + <gtext fgcolor=\"blue\" magic-glow=\"yellow\" magic-fgcolor=\"#ff8c00\" magic=\"\">Magic attribute</gtext>    </ex>   </attr>      <attr name=noxml>    Do not terminate the image tag with \"/\".   </attr>      <attr name=split>    <gtext scale=0.4 split>Make each word into a separate gif image.    Useful if you are writing a large text, and word wrap at the edges of