I've noticed that the ImageTTFText()/ImageTTFBox() functions actually works
with all fonts (PostScript type 1 & True Type) without a problem on Windows.
Whilst all TTF fonts work with Linux using the same function (as do many
PostScript Type 1 fonts) there are a number of PostScript fonts that fail to
work and just return an error:
Warning: imagettfbbox(): Could not find/open font in
/home/user/public_html/test/image2.php on line 38
I was hoping someone could enlighten me as to why a number of PostScript
fonts don't work on linux using the above functions (not the correct
ImagePSText() ), yet some fonts do work.
Is there a library that I need to install on the Linux Machine?
Linux PHP Stats:
Php 4.3.4
System Linux 2.4.20-28.8smp #1 SMP Thu Dec 18 12:25:21 EST 2003 i686
Build Date Dec 23 2003 00:13:25
Configure Command './configure'
'--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath'
'--enable-calendar' '--with-curl' '--with-swf=/usr/local/flash'
'--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext'
'--with-imap' '--with-imap-ssl' '--with-kerberos' '--enable-mbstring'
'--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash'
'--with-ming=../ming-0.2a' '--enable-magic-quotes' '--with-mysql=/usr'
'--with-openssl' '--with-pear' '--enable-sockets' '--enable-track-vars'
'--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf'
'--enable-versioning' '--with-zlib'
with all fonts (PostScript type 1 & True Type) without a problem on Windows.
Whilst all TTF fonts work with Linux using the same function (as do many
PostScript Type 1 fonts) there are a number of PostScript fonts that fail to
work and just return an error:
Warning: imagettfbbox(): Could not find/open font in
/home/user/public_html/test/image2.php on line 38
I was hoping someone could enlighten me as to why a number of PostScript
fonts don't work on linux using the above functions (not the correct
ImagePSText() ), yet some fonts do work.
Is there a library that I need to install on the Linux Machine?
Linux PHP Stats:
Php 4.3.4
System Linux 2.4.20-28.8smp #1 SMP Thu Dec 18 12:25:21 EST 2003 i686
Build Date Dec 23 2003 00:13:25
Configure Command './configure'
'--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath'
'--enable-calendar' '--with-curl' '--with-swf=/usr/local/flash'
'--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext'
'--with-imap' '--with-imap-ssl' '--with-kerberos' '--enable-mbstring'
'--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash'
'--with-ming=../ming-0.2a' '--enable-magic-quotes' '--with-mysql=/usr'
'--with-openssl' '--with-pear' '--enable-sockets' '--enable-track-vars'
'--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf'
'--enable-versioning' '--with-zlib'