php-devel
Moderator: General Moderators
According to http://fedoraproject.org/extras/4/i386/ ... group.html
are available from the fedora extras repository# t1lib-5.1.0-4.fc4: PostScript Type 1 font rasterizer
# t1lib-devel-5.1.0-4.fc4: Header files and static libraries for t1lib
The the answer is yes.tobeyt23 wrote:I need to use imagepstext so i can use the tightness to control the spacing between letters.
Did you install the package php-gd (e.g. via yum) and it came without support for truetype fonts?
Do you use the fedora package for php (again via yum) or did you install something else or built it from sources?
Last edited by volka on Wed Jan 17, 2007 2:51 pm, edited 1 time in total.
Installing t1lib alone will not solve the problem. The gd extension has to be compiled with t1lib support - that's nothing you can activate on runtime, either gd.so has t1lib support or it has not.
If you installed php-gd from the official fedora repo and it has no support for t1lib and you can't find another feasible package then you have to build it from sources yourself. I don't have fedora so I can only roughly talk you through it.
download http://download.fedora.redhat.com/pub/f ... .5.src.rpm
extract the files via rpm -ivh php-5.0.4-10.5.src.rpm
Now somewhere has to be a spec file for this source rpm, use find /usr/src -iname 'php*.spec' -print to locate it
open this file in a text editor
search for configure, something that looks like the configure script is called, might be
save the file
Make sure the t1lib is already installed (since the dependency was not added it's will not be installed automagically)
run rpmbuild -bb php.spec
This should build new rpms, including one for php-gd hopefully with t1lib support.
If you installed php-gd from the official fedora repo and it has no support for t1lib and you can't find another feasible package then you have to build it from sources yourself. I don't have fedora so I can only roughly talk you through it.
download http://download.fedora.redhat.com/pub/f ... .5.src.rpm
extract the files via rpm -ivh php-5.0.4-10.5.src.rpm
Now somewhere has to be a spec file for this source rpm, use find /usr/src -iname 'php*.spec' -print to locate it
open this file in a text editor
search for configure, something that looks like the configure script is called, might be
If a line ends with \ it means the next line belongs to the same command, therefore./configure \
--with-yadda-yadda
is one command. Now look if this configure command already contains something about gd, e.g../configure \
--with-yadda-yadda \
--with-foo \
--with-bar
if you find one of these options in the configure command add a new line--with-gd
--with-ttf
--enable-gd-native-ttf
--enable-gd-jis-conv
Code: Select all
--with-t1lib \Make sure the t1lib is already installed (since the dependency was not added it's will not be installed automagically)
run rpmbuild -bb php.spec
This should build new rpms, including one for php-gd hopefully with t1lib support.