Roxen.git / server / font_handlers / builtin.pike

version» Context lines:

Roxen.git/server/font_handlers/builtin.pike:1:   #include <config.h>   inherit "ttf"; - constant cvs_version = "$Id: builtin.pike,v 1.4 2000/09/21 03:57:44 per Exp $"; + constant cvs_version = "$Id: builtin.pike,v 1.5 2000/09/26 23:14:37 per Exp $";      constant name = "Builtin fonts";   constant doc = "Fonts included in pike (and roxen)";      inherit FontHandler;      array available_fonts()   {    return ({ "pike builtin", "roxen builtin" });   }      array(mapping) font_information( string fnt )   {    switch( replace(lower_case(fnt)," ","_")-"_" )    {    case "roxenbuiltin": - #if constant(__rbf) + #if constant(__rbf) && constant(grbf)    return ({    ([    "name":"roxen builtin",    "family":"Roxen builtin font",    "path":"-",    "style":"normal",    "format":"scalable vector font",    ])    });   #endif
Roxen.git/server/font_handlers/builtin.pike:57:   #endif      Font open( string name, int size, int bold, int italic )   {    switch( replace(lower_case(name)," ","_")-"_" )    {    case "roxenbuiltin":   #ifdef THREADS    object lock = lock->lock();   #endif - #if constant(__rbf) + #if constant(__rbf) && constant(grbf)    if( !roxenbuiltin ) -  roxenbuiltin = grbf(); +  catch(roxenbuiltin = grbf());    if( roxenbuiltin )    return TTFWrapper( roxenbuiltin(), size, "-" );   #endif    case "pikebuiltin":    return Image.Font();    }   }