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.218 2000/03/18 19:12:06 per Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.219 2000/03/19 23:38:04 nilsson Exp $";      #include <module.h>   inherit "module";   inherit "roxenlib";         // ------------------- Module registration ---------------------      constant module_type = MODULE_PARSER;   constant module_name = "Graphics text";
Roxen.git/server/modules/graphics/graphic_text.pike:223: Inside #if defined(manual)
   In the example below, notice how the text color mixes with the two background colors    <ex type=vert>   <gtext scale=\"0.6\" textbox=\"100,pink,-11\" bgcolor=\"lightblue\"    notrans=\"\" opaque=\"40\" fgcolor=\"black\">&lt;Demonstration of opaque text&gt;</gtext>    </ex>   </attr>      <attr name=outline value=color,extra-radius>    Draw an outline around the text. Quite useful when combined with textscale.    <ex type=vert> - <gtext xspacing=\"4\" textscale=\"red,red,yellow,yellow\" outline=\"black,1\">black, 2 pixels</gtext> + <gtext xspacing=\"4\" quant=\"128\" textscale=\"red,red,yellow,yellow\" outline=\"black,1\">black, 2 pixels</gtext>    </ex>   </attr>      <attr name=pressed>    Inverts the direction of the bevel box, to make it look like a button    that is pressed down. The magic modifier will do this automatically.   </attr>      <attr name=quant value=number>    Quantifies the image with this number of colors. Using a lower number will decrease
Roxen.git/server/modules/graphics/graphic_text.pike:310: Inside #if defined(manual)
  <attr name=textbox value=opaque,color>    Draw a box with an opaque value below the text of the specified color.   </attr>      <attr name=textscale value=color,color,color,color>    Apply a color filter to the text. The colors are,    respectively, upper left, lower left, upper right and lower right.    It is probably a good idea to increase the 'quant' value when    using this argument.    <ex type=vert> - <gtext textscale=\"blue,red,black,darkgreen\">Blue, red, black, darkgreen</gtext> + <gtext quant=\"128\" textscale=\"blue,red,black,darkgreen\">Blue, red, black, darkgreen</gtext>    </ex>   </attr>      <attr name=texture value=path>    Uses the specified images as a field texture.   </attr>      <attr name=tile>    Tiles the background and foreground images if they are smaller than    the actual image.
Roxen.git/server/modules/graphics/graphic_text.pike:542:    }    res+="\n";    }    text=replace(res[..strlen(res)-2], ({"!","?",": "}),({ nbsp+"!",nbsp+"?",nbsp+": "}));    text=replace(replace(replace(text,({". ",". "+nbsp}),    ({"\000","\001"})),".","."+nbsp+nbsp),    ({"\000","\001"}),({". ","."+nbsp}));    }       if( args->afont ) -  font = resolve_font((args->afont||args->font)+" "+(args["font-size"]||32)); +  font = resolve_font((args->afont||args->font)+" "+(args["fontsize"]||32));    else    {    int bold=0, italic=0;    if(args->nfont) args->font = args->nfont;    if(args->bold) bold=1;    if(args->light) bold=-1;    if(args->black) bold=2;    if(args->italic) italic=1;    font = get_font(args->font||"default", -  (int)args["font-size"]||32, +  (int)args["fontsize"]||32,    bold,    italic,    lower_case(args->talign||"left"),    (float)args->xpad,    (float)args->ypad);    }    if(!font)    font = resolve_font(0);       if (!font)
Roxen.git/server/modules/graphics/graphic_text.pike:662:    "bgcolor",    "bgturbulence",    "black",    "bold",    "bshadow",    "chisel",    "encoding",    "fadein",    "fgcolor",    "font", -  "font-size", +  "fontsize",    "ghost",    "glow",    "italic",    "light",    "mirrortile",    "move",    "narrow",    "nfont",    "notrans",    "opaque",