Roxen.git/
server/
font_handlers/
imagedir.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2001-01-04
2001-01-04 10:00:12 by Martin Nilsson <mani@lysator.liu.se>
4dfb8a673aa9ee0f046887fd2e7d81949402794b (
10
lines) (+
8
/-
2
)
[
Show
|
Annotate
]
Branch:
5.2
Bugfixed initial xpad/ypad value retrieval
Rev: server/font_handlers/imagedir.pike:1.10
1:
#include <config.h> #include <stat.h>
-
constant cvs_version = "$Id: imagedir.pike,v 1.
9
2001/01/
02
18
:
56
:
35
nilsson Exp $";
+
constant cvs_version = "$Id: imagedir.pike,v 1.
10
2001/01/
04
10
:
00
:
12
nilsson Exp $";
constant name = "Image directory fonts"; constant doc = ("Handles a directory with images (in almost any format), each "
231:
object key = lock->lock(); #endif if( !font_list ) update_font_list();
+
int xpad,ypad;
+
if(meta_data && meta_data[name]) {
+
xpad = meta_data[name]->xpad;
+
ypad = meta_data[name]->ypad;
+
}
if( font_list[ name ] ) return myFont( font_list[name], size,
-
meta_data[name]->
xpad,
meta_data[name]->
ypad );
+
xpad, ypad );
}