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 - 2004, Roxen IS. #include <config.h>
-
constant cvs_version = "$Id: old.pike,v 1.
13
2008
/
11
/
13
07
:
32
:
14
jonasw Exp $";
+
constant cvs_version = "$Id: old.pike,v 1.
14
2009
/
02
/
06
11
:
53
:
24
jonasw 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; Thread.Mutex lock = Thread.Mutex();
Roxen.git/server/font_handlers/old.pike:88:
} string fix_name( string what ) { return replace( lower_case(what), " ", "_" ); } array has_font( string name, int size ) { string base_dir;
-
array available
, fallback_available
;
+
array available;
if( String.width( name ) > 8 ) return 0; Thread.MutexKey key = lock->lock(); if (!font_cache) build_font_cache(); string match_prefix = size + "/" + fix_name(name) + "/"; array matches = filter(indices(font_cache), has_prefix, match_prefix); if (sizeof(matches))