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.315 2012/05/09 13:52:12 jenny 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: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:984:    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) + #if constant(Sitebuilder) && constant(Sitebuilder.sb_start_use_imagecache)    // 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    m_delete(arg, tmp);    } else {    // The magic-* attributes will be removed later.    arg[tmp]=Roxen.fix_relative(arg[tmp],id);