(none) imager-devel
/ help / lists / applications / search /
 

Imager::Font and dynamic font selection

From: Hostmaster (
02508@xyz.molar.is)
Date: Mon 18 Jun 2001 - 20:41:33 UTC

  • Next message: Mike Depot: "Re: Imager::Font and dynamic font selection"

    Hi folks;

    I'm working with Imager::Font and am writing text just fine to my png
    file if I hard code the font as below;

    my $t1font_company = Imager::Font->new(file => '/home/httpd/html/souperstores/gold_stores/fonts/Alanden_.pfb');

    I would like to be able to assign the font on the fly and have tried the
    following with no success;

    my $company_font_face = $query->param("company_font_face");
    my $t1font_company = Imager::Font->new(file => '/home/httpd/html/souperstores/gold_stores/fonts/$company_font_face');

    Is it possible to do this?

    - thanks -

    -- 
    

    best regards -michael



  •