Roxen.git/
server/
font_handlers/
compactimgfile.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2001-02-08
2001-02-08 21:55:16 by Martin Nilsson <mani@lysator.liu.se>
8cd3ad1b79126d5041b209cb135cecfd9553b0ce (
10
lines) (+
8
/-
2
)
[
Show
|
Annotate
]
Branch:
5.2
Read the rich information as well.
Rev: server/font_handlers/compactimgfile.pike:1.4
171:
else if( glob( "*.cif", pd ) ) { CIF t = open_tar( dir+pd );
-
if( Stdio.File f = t->open( "fontname", "r" ) )
-
font_list[font_name(
f
->read() )] = dir+pd;
+
if( Stdio.File f = t->open( "fontname", "r" ) )
{
+
string name = f->read();
+
if( Stdio.File f = t->open( "fontinfo", "r" ) )
+
font_list[font_name(
"<name>"+name+"</name>"+f
->read() )] = dir+pd;
else
-
+
font_list[font_name( name )] = dir+pd;
+
}
+
else
destruct( t ); } }