Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199901

[PHP3] FreeType Support with FreeBSD returns "Document contains no data" From: Rick Wiggins (wiggins <email protected>)
Date: 01/31/99

All,

After seeing Rasmus' article showing how to create buttons on the fly, I
decided to compile GD and FreeType support into PHP. I was finally able to
convince 'configure' that I had both 'libgd.a' and 'libttf.a' in
'/usr/local/lib'. My web server running PHP 3.0.6 now shows:

Version 1.2 with FreeType support

for GD support when I echo a 'phpinfo()'. However, when I try to run the
example from the article or the example from the manual, I get:

Document contains no data

messages. If I comment out the calls to 'ImageTTFText()', the message goes
away and the blue box (in the article example) is displayed. The call to
'ImageTTFBBox()' seems to work okay, though. If I change the text or the
font size parameter, the resulting blue box changes size indicating the the
call is setting the size array properly.

My system is:

System: FreeBSD lamb.gwis.com 3.0-RELEASE FreeBSD 3.0-RELEASE #0: Mon Jan 4
15:49:23 EST 1999

My web server is:

Apache Version: Stronghold/2.4.1 Apache/1.3.3 C2NetEU/2409
                                 Apache Release: 1030399
                                 Apache API Version: 19980917

I'm using FreeType 1.2 and GD 1.3 (even though 'phpinfo()' reports 1.2 -
perhaps this is the FreeType version and not the GD version).

I took my TrueType Fonts from a Windows NT system, so these should be okay,
shouldn't they? I feel like I'm so very close to making this work! Any
assistance will be greatly appreciated...

Rick Wiggins

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev-list-admin <email protected>