Roxen.git
/
server
/
font_handlers
/
old.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/font_handlers/old.pike:1:
// This file is part of Roxen WebServer. // Copyright © 1996 - 2000, Roxen IS. #include <config.h>
-
constant cvs_version = "$Id: old.pike,v 1.
10
2001/
05
/
04
14
:
26
:
14
jonasw
Exp $";
+
constant cvs_version = "$Id: old.pike,v 1.
11
2001/
08
/
29
18
:
42
:
29
nilsson
Exp $";
constant name = "Compatibility bitmap fonts"; constant doc = "Compatibility (bitmapped) fonts for Roxen 1.3 and earlier." " Compact image file fonts are preferable to this format, since they are " "almost always smaller, and easier to create."; inherit FontHandler; array available_fonts()
Roxen.git/server/font_handlers/old.pike:110:
else ::set_x_spacing( delta ); } void set_y_spacing(int|float delta) { if(intp(delta)) ::set_y_spacing( (100.0+delta)/100.0 ); else ::set_y_spacing( (float)delta ); }
+
+
string _sprintf() {
+
return sprintf( "OldFont" );
}
-
+
}
+
Font open( string name, int size, int bold, int italic ) { if( String.width( name ) > 8 ) return 0; string f = make_font_name( name, size, bold, italic ); Image.Font fn = MyFont(); foreach( roxen->query( "font_dirs"), string dir ) foreach( ({ size, 32 }), int sz ) { if( r_file_stat( dir+"/"+sz+"/"+f ) ) { if( fn->load( roxen_path( dir+"/"+sz+"/"+f ) ) ) return fn; } } }