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