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 - 2001, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.278 2001/09/03 18:15:06 nilsson Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.279 2001/09/21 15:58:11 jhs 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:337: Inside #if defined(manual)
  </attr>      <attr name='texture' value='path'><p>    Uses the specified images as a field texture.</p>   <ex>   <gtext font=\"\" fontsize=\"100\"   texture=\"/internal-roxen-squares\">A</gtext>   </ex>   </attr>    - <attr name=tile> + <attr name='tile'>    Tiles the background and foreground images if they are smaller than    the actual image.   </attr>      <attr name='xpad' value='percentage|integer ended with \"px\"'><p>    Sets the padding between characters. The value can either be an    relative change, in percent, or an absolute number of pixels, ended    with the string \"px\". 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
Roxen.git/server/modules/graphics/graphic_text.pike:380: Inside #if defined(manual)
  <attr name='ysize' value='number'><p>    Sets the height.</p>   </attr>      <attr name='yspacing' value='number'><p>    Sets the vertical spacing.</p>   </attr>";         constant tagdoc=([ - "anfang":#"<desc cont='cont'><p><short> + "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>       <ex>    <anfang crop=\"\">This is a beginning<br />    of a very short text,<br />    and here it ends.    </anfang>    </ex>   </desc>   <noex>"+gtextargs+"</noex>",    - "gh":#"<desc cont='cont'><p><short> + "gh":#"<desc type='cont'><p><short>    Creates a graphical header.</short> <tag>gh</tag> takes the same    attributes as <xref href='gtext.tag' />. <tag>gh</tag> comes in six    flavors, from <tag>gh1</tag> through <tag>gh6</tag> and are the RXML    counterpart to the HTML tags <tag>h1</tag> through <tag>h6</tag>.</p>   </desc>   <noex>"+gtextargs+"</noex>",    - "gh1":#"<desc cont='cont'></desc> + "gh1":#"<desc type='cont'></desc>   <noex>"+gtextargs+"</noex>",    - "gh2":#"<desc cont='cont'></desc> + "gh2":#"<desc type='cont'></desc>   <noex>"+gtextargs+"</noex>",    - "gh3":#"<desc cont='cont'></desc> + "gh3":#"<desc type='cont'></desc>   <noex>"+gtextargs+"</noex>",    - "gh4":#"<desc cont='cont'></desc> + "gh4":#"<desc type='cont'></desc>   <noex>"+gtextargs+"</noex>",    - "gh5":#"<desc cont='cont'></desc> + "gh5":#"<desc type='cont'></desc>   <noex>"+gtextargs+"</noex>",    - "gh6":#"<desc cont='cont'></desc> + "gh6":#"<desc type='cont'></desc>   <noex>"+gtextargs+"</noex>",    - "gtext":#"<desc cont='cont'><p><short> + "gtext":#"<desc type='cont'><p><short>    Creates an image with the tag content texts.</short> It is possible to pass    attributes, such as the target attribute, to the resulting tags by including    them in the gtext tag.</p>   </desc>      <attr name='alt' value='string'><p>    Sets the alt attribute of the generated <tag>img</tag> tag. By    default the alt attribute will be set to the contents of the    <tag>gtext</tag> tag.</p>   
Roxen.git/server/modules/graphics/graphic_text.pike:512: Inside #if defined(manual)
   <p>Be aware that this tag could be abused for denial of service    attacks by malicious users swarming your server with requests for    images of great length that the server would happily try to render    for them. Hence this tag should only be used in environments where    you trust all your users, e.g. Intranets.</p>       <p>In most cases the tag <tag>gtext-url</tag> solves this problem,    but if you would like to generate new text images live without    reloading some RXML page, you need this tag. An example application:</p>    - <ex type='live'> - <define variable='var.id' preparse='' trimwhites=''> + <ex-box><define variable='var.id' preparse='' trimwhites=''>   <gtext-id font='FranklinGothicDemi' fgcolor='blue'/>   </define>      <img src='&var.id;Please type some text here:' -  alt='' name='banner' width='468' height='60'/> +  alt='' name='banner' width='468' height='60' />      <script language='javascript'>   var image = document.images.banner;   function alter_image(label)   {    image.src = '&var.id:js;' + escape(label.value);    label.focus();    return false;   }   </script>      <form onsubmit='return alter_image(this.label);'>   <input type='text' size='40' name='label' /> - </form></ex> - </desc> + </form></ex-box></desc>      <attr name='short'><p>    Returns a relative path to the image, i.e. a shorter one.   </p>   </attr>"+gtextargs,    - "gtext-url":#"<desc cont='cont'><p><short> + "gtext-url":#"<desc type='cont'><p><short>    Returns an internal URL to an image with the specified attributes    applied.</short></p>   </desc>      <attr name='short'><p>    Returns a relative path to the image, i.e. a shorter one.   </p>   </attr>   <noex>"+gtextargs+"</noex>",]);   #endif