Roxen.git
/
server
/
font_handlers
/
builtin.pike
version
»
Context lines:
10
20
40
80
file
none
3
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.
9
2001/08/21
13
:
55
:
02
per Exp $";
+
constant cvs_version = "$Id: builtin.pike,v 1.
10
2001/08/21
14
:
26
:
51
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:63:
Font open( string name, int size, int bold, int italic ) { switch( replace(lower_case(name)," ","_")-"_" ) { case "roxenbuiltin": #if constant(__rbf) && constant(grbf) #ifdef THREADS object key = lock->lock(); #endif
-
#if constant(Image.FreeType.Face)
+
if( !roxenbuiltin ) catch(roxenbuiltin = grbf());
-
if( roxenbuiltin ) return FTFont( roxenbuiltin, size,"-",bold,italic );
+
if( roxenbuiltin )
+
#if
constant(Image.FreeType.Face)
+
return FTFont( roxenbuiltin, size,"-",
bold,
italic );
#else
-
if(
!roxenbuiltin
) catch(roxenbuiltin = grbf());
-
if( roxenbuiltin )
return TTFWrapper( roxenbuiltin(), size, "-" );
+
return TTFWrapper( roxenbuiltin(), size, "-"
,
bold, italic
);
#endif #endif case "pikebuiltin": return Image.Font(); } }