[thelist] PHP: imageloadfont

Mark Kennedy mark at eurogamer.net
Wed Feb 11 09:37:30 CST 2004


It looks like it involves drawing out your entire alphabet in a single line in
photoshop, saving it as an 8 bit raw file, then sticking a few bytes at the
beginning using a hex editor or something.  Sounds like a real fuss, so why
don't you use one of these functions instead?:

for TrueType fonts:
http://www.php.net/manual/en/function.imagettftext.php

for PostScript fonts:
http://www.php.net/manual/en/function.imagepsloadfont.php

HTH,

Mark


On Wed, 11 Feb 2004, Hassan Schroeder wrote:

>The `imageloadfont` function man page
>	<http://php.net/manual/en/function.imageloadfont.php>
>says:
>	The font file format is currently binary and architecture
>	dependent. This means you should generate the font files on
>	the same type of CPU as the machine you are running PHP on.
>
>:: but doesn't explain how you "generate" the file; anyone familiar
>with the process?
>
>TIA,
>-- 
>Hassan Schroeder ----------------------------- hassan at webtuitive.com
>Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
>
>                           dream.  code.
>
>
>-- 
>* * Please support the community that supports you.  * *
>http://evolt.org/help_support_evolt/
>
>For unsubscribe and other options, including the Tip Harvester 
>and archives of thelist go to: http://lists.evolt.org 
>Workers of the Web, evolt ! 
>

 



More information about the thelist mailing list