Roxen.git / server / font_handlers / builtin.pike

version» Context lines:

Roxen.git/server/font_handlers/builtin.pike:1:   #include <config.h>   #if constant(Image.FreeType.Face)   inherit "freetype";   #else   inherit "ttf";   #endif - constant cvs_version = "$Id: builtin.pike,v 1.11 2001/09/03 14:07:10 per Exp $"; + constant cvs_version = "$Id: builtin.pike,v 1.12 2001/09/03 16:32:04 per Exp $";      constant name = "Builtin fonts";   constant doc = "Fonts included in pike (and roxen)";      inherit FontHandler;      array available_fonts()   {    return ({ "pike builtin", "roxen builtin" });   }
Roxen.git/server/font_handlers/builtin.pike:65:   {    switch( replace(lower_case(name)," ","_")-"_" )    {    case "roxenbuiltin":   #if constant(__rbf) && constant(grbf)   #ifdef THREADS    object key = lock->lock();   #endif    if( !roxenbuiltin )    if( mixed err = catch(roxenbuiltin = grbf()) ) + #ifdef DEBUG    werror("Failed to open builtin font: %s\n",    describe_backtrace( err ) ); -  + #else +  ; + #endif    if( roxenbuiltin )   #if constant(Image.FreeType.Face)    return FTFont( roxenbuiltin, size,"-", bold, italic );   #else    return TTFWrapper( roxenbuiltin(), size, "-", bold, italic);   #endif   #endif    case "pikebuiltin":    return Image.Font();    }   }