Roxen.git / server / modules / graphics / graphic_text.pike

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1: - string cvs_version="$Id: graphic_text.pike,v 1.30 1997/02/25 16:05:30 per Exp $"; + string cvs_version="$Id: graphic_text.pike,v 1.31 1997/02/25 22:06:19 neotron Exp $";   #include <module.h>   inherit "module";   inherit "roxenlib";      import Image;      array register_module()   {    return ({ MODULE_LOCATION | MODULE_PARSER,    "Graphics text",
Roxen.git/server/modules/graphics/graphic_text.pike:124:   }      string query_location() { return query("location"); }      mapping (string:object) fonts = ([]);      object(font) load_font(string name, string justification, int xs, int ys)   {    object fnt = font();    +  if(!name) name="";    if(sscanf(name, "%*s/%*s") != 2)    name=QUERY(default_size)+"/"+name;       name = "fonts/" + name;       if(!fnt->load( name ))    {    perror("Failed to load the font "+name+", using the default font.\n");    if(!fnt->load("fonts/"+QUERY(default_size) +"/"+ QUERY(default_font)))    error("Failed to load the default font\n");