• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 879
  • Last Modified:

Adding fonts to FreeBSD

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
drakkarnoir
Asked:
drakkarnoir
  • 2
  • 2
1 Solution
 
gheistCommented:
Is GD and php built from ports ???
0
 
drakkarnoirAuthor Commented:
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
 
gheistCommented:
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
 
drakkarnoirAuthor Commented:
Ok I figured it out, thanks qheist ;)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now