Roxen.git / server / font_handlers / ttf.pike

version» Context lines:

Roxen.git/server/font_handlers/ttf.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2000, Roxen IS.      #if !constant(Image.FreeType.Face)   #if constant(has_Image_TTF)   #include <config.h> - constant cvs_version = "$Id: ttf.pike,v 1.9 2001/08/21 14:26:51 per Exp $"; + constant cvs_version = "$Id: ttf.pike,v 1.10 2001/09/27 21:51:23 per Exp $";      constant name = "TTF fonts";   constant doc = "True Type font loader. Uses freetype to render text.";   constant scalable = 1;      inherit FontHandler;      static mapping ttf_font_names_cache;      static string trimttfname( string n )
Roxen.git/server/font_handlers/ttf.pike:140: Inside #if !constant(Image.FreeType.Face)
   }    if( fake_bold )    {    object r2 = Image.Image( rr->xsize()+2, rr->ysize() );    object r3 = rr*0.3;    for( int i = 0; i<2; i++ )    for( int j = 0; j<2; j++ )    r2->paste_alpha_color( r3, 255, 255, 255, i, j );    rr = r2->paste_alpha_color( rr, 255,255,255, 1,1 );    } +  rr->setcolor( 0,0,0 );    if( fake_italic ) -  rr = rr->skewx( -(rr->ysize()/3), Image.Color.black ); +  rr = rr->skewx( -(rr->ysize()/3) );    return rr;       }       array text_extents( string what )    {    Image.Image o = write( what );    return ({ o->xsize(), o->ysize() });    }