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.283 2001/10/09 22:14:38 nilsson Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.284 2001/11/15 09:50:57 grubba 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:912:    if(id->misc->defines->black && !p->black) p->black=id->misc->gtext_black;    if(id->misc->defines->narrow && !p->narrow) p->narrow=id->misc->gtext_narrow;       if(p->afont) {    p->font = roxen->fonts->verify_font( p->afont+" "+p->fontsize );    if(!p->font) RXML.parse_error("Font "+p->afont+" could not be loaded.\n");    }    else {    string font = p->font;    p->font = roxen->fonts->verify_font(p->font, p->fontsize||32); -  if(!p->font) RXML.parse_error("Font "+font+" could not be loaded.\n"); +  if(!p->font) { +  RXML.parse_error("Font " + (font || roxen->query("default_font")) + +  " could not be loaded.\n");    } -  +  }       return p;   }      private string fix_text(string c, mapping m, RequestID id) {       if(m->nowhitespace)    {    c=String.trim_all_whites(c);    m_delete(m, "nowhitespace");