Roxen.git/
server/
font_handlers/
old.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2000-09-03
2000-09-03 17:11:58 by Martin Nilsson <mani@lysator.liu.se>
d3a6826d32cc85f48f756ebd1e7a5f375b195c52 (
7
lines) (+
4
/-
3
)
[
Show
|
Annotate
]
Branch:
5.2
Added family. Removed styles
Rev: server/font_handlers/old.pike:1.3
2:
// Copyright © 1996 - 2000, Roxen IS. #include <config.h>
-
constant cvs_version = "$Id: old.pike,v 1.
2
2000/09/03
16
:
45
:
56
nilsson Exp $";
+
constant cvs_version = "$Id: old.pike,v 1.
3
2000/09/03
17
:
11
:
58
nilsson Exp $";
constant name = "Compatibility bitmap fonts"; constant doc = "Compatibility (bitmapped) fonts for Roxen 1.3 and earlier.";
46:
{ dir+="32/"; if( r_file_stat( dir+fnt ) )
-
/
*
the font file exists in this dir..
*/
+
/
/
the font file exists in this dir..
{ array d = r_get_dir(dir+fnt); foreach( ({ "nn", "ni", "li", "ln", "Bi", "Bn", "bi", "bn" }),
54:
if(has_value(d, style)) { mapping font_info = ([ "name":fnt,
+
"family":fnt,
"path":dir+fnt,
-
"styles":styles,
+
"format":"bitmap dump" ]); switch(style[0]) { case 'l': font_info->name+="light"; break;