Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Perl: the Markov chain saw
 
PerlMonks  

Re^2: OpenType Fonts support in CPAN

by sanPerl (Friar)
on Dec 10, 2007 at 15:08 UTC ( #656135=note: print w/ replies, xml ) Need Help??


in reply to Re: OpenType Fonts support in CPAN
in thread OpenType Fonts support in CPAN

Dear talexb
Thanks for the reply. The real program is checking existance of font file before feeding to $img->font(...),when I say it dosen't work, it dosen't provide "Hello World" text with the requested Font on screen, inspite of font file being present in the location. It gives blank page
I am trying to build a Font library for my company, where user will get sense of Font looks and he/she can order Font from the library. This is to take care of all licensing issues and to ensure if we can check all fonts anytime.


Comment on Re^2: OpenType Fonts support in CPAN
Re^3: OpenType Fonts support in CPAN
by talexb (Canon) on Dec 10, 2007 at 15:13 UTC

    OK, but what about the return code from the font method call? That's the very first place I'd look for information, with the next place being the module code.

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

      I just checked it with
      if ($img->font('C:\WINNT\aaaZemestrostd-bk.otf')) { print "Done"; };
      It returns prints "Done" even the file "C:\WINNT\aaaZemestrostd-bk.otf" dosen't exists. Also i checked with the documentation of GD::Simple, it says "The font to use when drawing text. Both built-in bitmapped fonts and TrueType fonts are supported". I am Not sure if built-in bitmapped fonts include OTF fonts (my knowldge in this subject is very limited)
          It returns prints "Done" even the file "C:\WINNT\aaaZemestrostd-bk.otf" dosen't exists.

        OK, so it appears that the module is broken -- if it doesn't return an error when a specified file is missing, that's an error.

        The font you want to use may not be supported, as you suspect. See if you can get in touch with the authors to get this figured out, and good luck. :)

        Alex / talexb / Toronto

        "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://656135]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2014-04-21 00:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (489 votes), past polls