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

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1: - constant cvs_version="$Id: graphic_text.pike,v 1.59 1997/09/01 01:38:58 per Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.60 1997/09/01 01:44:21 per Exp $";   constant thread_safe=1;      #include <module.h>   inherit "module";   inherit "roxenlib";      #if efun(_static_modules)   # define map_array Array.map   import Image;   # define Image image
Roxen.git/server/modules/graphics/graphic_text.pike:155:   }      string query_location() { return query("location"); }      object(Font) load_font(string name, string justification, int xs, int ys)   {    object fnt = Font();       if ((!name)||(name == ""))    { -  return get_font("default",(int)args->font_size||32,0,0, -  lower_case(args->justification||"left"), +  return get_font("default",32,0,0,lower_case(justification||"left"),    (float)xs, (float)ys);    } else if(sscanf(name, "%*s/%*s") != 2) {    name=QUERY(default_size)+"/"+name;    }       name = "fonts/" + name;       if(!fnt->load( name ))    {    report_debug("Failed to load the compatibility font "+name+    ", using the default font.\n"); -  return get_font("default",(int)args->font_size||32,0,0, -  lower_case(args->justification||"left"), +  return get_font("default",32,0,0,lower_case(justification||"left"),    (float)xs, (float)ys);    }    catch    {    if(justification=="right") fnt->right();    if(justification=="center") fnt->center();    if(xs)fnt->set_x_spacing((100.0+(float)xs)/100.0);    if(ys)fnt->set_y_spacing((100.0+(float)ys)/100.0);    };    return fnt;