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.145 1998/08/20 07:39:28 per Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.146 1998/08/26 14:34:14 wellhard Exp $";   constant thread_safe=1;      #include <module.h>   #include <stat.h>   inherit "module";   inherit "roxenlib";      #ifndef VAR_MORE   #define VAR_MORE 0   #endif /* VAR_MORE */
Roxen.git/server/modules/graphics/graphic_text.pike:878:    if(args->bold) bold=1;    if(args->light) bold=-1;    if(args->italic) italic=1;    if(args->black) bold=2;    data = get_font(args->nfont,(int)args->font_size||32,bold,italic,    lower_case(args->talign||"left"),    (float)(int)args->xpad, (float)(int)args->ypad);    if(!data)    data = load_font(args->font, lower_case(args->talign||"left"),    (int)args->xpad,(int)args->ypad); +  } +  else if(args->afont) +  { + #if efun(resolve_font) +  data = resolve_font(args->afont); + #endif    } else {    int bold, italic;    if(args->bold) bold=1;    if(args->light) bold=-1;    if(args->italic) italic=1;    if(args->black) bold=2;    data = get_font(roxen->QUERY(default_font),32,bold,italic,    lower_case(args->talign||"left"),    (float)(int)args->xpad, (float)(int)args->ypad);    }
Roxen.git/server/modules/graphics/graphic_text.pike:1141:    string q;       foreach(glob("magic_*", indices(f2)), q)    m_delete(f2,q);       if(!args_restored)    restore_cached_args( );       array a=indices(f2),b=values(f2);    sort(a,b); -  q = a*""+b*""; +  q = a*""+Array.map(b, lambda(mixed x) { return (string)x; })*"";       if(res = cached_args[ q ])    return res;       restore_cached_args(); /* Not slow now, checks with stat.. */       if(res = cached_args[ q ])    return res;       cached_args[ number ] = f2;