kieranbarnes do you know where your towel is?

Yellow text?

Posted on June 25, 2007

I stumbled over a strange bug on two systems the other day where the imagettftext() function was always writing the text in yellow. No matter how I set the colour, imagecolorallocate($image, 0, 0, 0);, I would always get yellow. Why yellow?

Both systems are Ubuntu, I don't know if it is a mix up on the libraries from the package, or indeed PHP.

I had to recompile PHP ignoring the --with-ttf option which most docs suggest, and just use the --with-freetype-dir instead. Problem solved.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

Related posts:

  1. ADOdb’s GetMenu() function moreAttr bug
    I'm sure there is a bug with ADOdb's GetMenu() function The documentation suggests 'use $moreAttr...
  2. PEAR – Text_Spell_Audio Package
    I've just noticed a new(-ish) package on PEAR, called Text_Spell_Audio. It generates sound clips speaking...
  3. Find text within files
    Stuck trying to find text within files on Linux? cd /directory_tree_you_want_to_search find . -type f...
  4. PHP Export as CSV
    A client recently requested an option to extract search results from their PHP application as...
  5. Anonymous apache & PHP
    Like to be conspicuous? Like me. Then use the  ServerTokens and expose_php options. On a...

What this article useful to you?



Let me know, buy me a beer!
Alternatively, if you're feeling impecunious, you may like to subscribe to my RSS feed, or see other articles in the Linux, PHP category.

Filed under: Linux, PHP Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.