?
Solved

Adding fonts to FreeBSD

Posted on 2005-03-03
4
Medium Priority
?
872 Views
Last Modified: 2013-12-03
This might be a FreeBSD issue, or an underlying issue with fonts in GD2. I currently use a font that I used under my Windows compilation of PHP with GD. This font is used to write text onto images, it is called "tahoma.ttf". Now that I have PHP with GD compiled under FreeBSD, how do I make GD recognize this font file?
0
Comment
Question by:drakkarnoir
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 13456412
Is GD and php built from ports ???
0
 

Author Comment

by:drakkarnoir
ID: 13456467
Yes, I actually figured this out (turned out they need to be in /X11/fonts/TTF/).

I do have another question, I switched from Apache2 to Apache 1.33. Now I get the oddest behavior happening:

All the necessary modules and config lines are added to httpd.conf by the php5 port, and so I do apachectl restart and every run it says:

root@unitedok# apachectl restart
/usr/local/sbin/apachectl restart: httpd not running, trying to start
/usr/local/sbin/apachectl restart: httpd started
root@unitedok# apachectl restart
/usr/local/sbin/apachectl restart: httpd not running, trying to start
/usr/local/sbin/apachectl restart: httpd started
root@unitedok# apachectl restart
/usr/local/sbin/apachectl restart: httpd not running, trying to start
/usr/local/sbin/apachectl restart: httpd started
root@unitedok# apachectl restart
/usr/local/sbin/apachectl restart: httpd not running, trying to start
/usr/local/sbin/apachectl restart: httpd started
root@unitedok# apachectl restart
/usr/local/sbin/apachectl restart: httpd not running, trying to start
/usr/local/sbin/apachectl restart: httpd started

And the error log is completely blank...any ideas? (libphp5.so exists in /usr/local/libexec/apache/libphp5.so and ServerRoot is "/usr/local")

Points will be given to the answer for this question.
0
 
LVL 62

Accepted Solution

by:
gheist earned 2000 total points
ID: 13456530
Tahoma is installed from x11-fonts/webfonts btw
After you have to run fc-cache -v to get freetype to recognize the font.

When you change apache, you have to rebuild php too. ( portupgrade -f php\* )
(portupgrade along with portaudit is in ports)
0
 

Author Comment

by:drakkarnoir
ID: 13461549
Ok I figured it out, thanks qheist ;)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses
Course of the Month8 days, 10 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question