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

Re: Imager::Font and dynamic font selection

From: Mike Depot (
02548@xyz.molar.is)
Date: Mon 18 Jun 2001 - 21:57:00 UTC

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

    > '/home/httpd/html/souperstores/gold_stores/fonts/$company_font_face'

    (Sparing the acronyms...) Perl doesn't do variable interpolation for single
    quotes...

    ----- Original Message -----
    From: "Hostmaster" <02580@xyz.molar.is>
    To: <imager-devel@molar.is>
    Sent: Monday, June 18, 2001 4:41 PM
    Subject: [Imager-devel]: 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
    >
    >
    >



  •