Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: Could not find/open font


Message #1 by "Sokun, Chorn" <sokunxp@g...> on Thu, 29 Nov 2001 17:32:08 +0700
I have Visual C++ on my machine, and the MAKE file that they require can be
setup to use the visual c++ compiler.  They also distribute a visual C++
project and workspace file which you can use, too.

Building freetype with both MAKE and Visual C++ gives me a .lib file, not a
.dll...  Their website had a few bad links here and there, and made it
somewhat annoying to actually find what I needed.

It seems that a .lib file isn't what you expected, but building it was easy
enough:

download the MinGW make.exe from:
   ftp://ftp.freetype.org/freetype/contrib/win32/gnumake-win32.zip

download the FreeType 2.05 source package from sourceforge:
   http://prdownloads.sourceforge.net/freetype/ft205.zip


1) Unzip ft205.zip somewhere convenient, let's call it BASEDIR
     (this will create the directory "BASEDIR\freetype-2.0.5")
2) Extract make.exe from the gnumake-win32.zip file into
BASE_DIR\freetype-2.0.5
3) Click Start -> Run
4) Type "cmd".
5) At the command prompt, type "cd BASE_DIR\freetype-2.0.5"
5) At the command prompt, type "make setup visualc"
6) At the command prompt, type "make"

You library should be in BASE_DIR\freetype-2.0.5\objs

Alternatively, you can just poke around teh visual C++ project.  It's in
 BASE_DIR\freetype-2.0.5\builds\win32\visualc\


HTH,

nik

-----Original Message-----
From: Nikolai Devereaux [mailto:yomama@u...]
Sent: Thursday, November 29, 2001 11:58 AM
To: professional php
Subject: [pro_php] Re: Could not find/open font



I'll see if they have a windows source code package, if so I'll try to build
the dll for you and put it online somewhere.

can't make any guarantees, tho.


-----Original Message-----
From: Sokun, Chorn [mailto:sokunxp@g...]
Sent: Thursday, November 29, 2001 5:52 AM
To: professional php
Subject: [pro_php] Re: Could not find/open font


Oh I forget to mention the FreeType I mention is the one that need to be use
with PHP_GD.DLL  so the ImageLoadFont(), ImageTTFText() won't generate error
message

The address that the manual tell me is: http://www.freetype.org/ but I don't
know how to compile the source code to make dll file.

I hope I make it clear to get some help :)

THanks
¢-------------------------------------------------------------------------¢
Sokun, Chorn
website: http://www.cambodianlink.com/penpal
¢-------------------------------------------------------------------------¢



Read the future with ebooks at B&N
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
=rn_ebooks



Read the future with ebooks at B&N
http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38934667&categoryid
=rn_ebooks


  Return to Index