Roxen.git / server / font_handlers / old.pike

version» Context lines:

Roxen.git/server/font_handlers/old.pike:1:   // This file is part of Roxen WebServer.   // 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.";      inherit FontHandler;         array available_fonts()   {    array res = ({});
Roxen.git/server/font_handlers/old.pike:39:    return res;   }      array(mapping) font_information( string fnt )   {    array font_infos=({});    foreach(roxen->query("font_dirs"), string dir)    {    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" }),    string style)    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;    case 'b': font_info->name+="bold"; break;    case 'B': font_info->name+="black"; break;    }    if(style[1]=='i') font_info->name+="italic";    font_infos+=({ font_info });    }    }