Roxen.git/
server/
font_handlers/
imagedir.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2000-09-16
2000-09-16 21:07:38 by Per Hedbor <ph@opera.com>
3efbc917ad9229efaee5f24fbf018f158100459a (
11
lines) (+
7
/-
4
)
[
Show
|
Annotate
]
Branch:
5.2
Fixes [Bug
298 (#298)
].
Rev: server/font_handlers/imagedir.pike:1.6
1:
#include <config.h> #include <stat.h>
-
constant cvs_version = "$Id: imagedir.pike,v 1.
5
2000/09/16
20
:
43
:
31
nilsson
Exp $";
+
constant cvs_version = "$Id: imagedir.pike,v 1.
6
2000/09/16
21
:
07
:
38
per
Exp $";
constant name = "Image directory fonts"; constant doc = ("Handles a directory with images (in almost any format), each "
51:
array possible = ({ encode_char(c) })+ glob(encode_char( c )+".*", files); sort( map(possible,strlen), possible );
+
catch {
foreach( possible, string pf ) if( mapping r = Image._load( path+pf ) ) return r;
-
+
};
if( c == " " ) return spacechar; return nullchar; }