[PHP-DEV] Re: Bug #12956: libgd2 + TTF = ugly fonts.
I can't use libgd2 and have nice fonts. I can't use libgd1 and have nice thumbnails. I'm stuck. Alternatively you can try php_imlib from Matt McClanahan (http://www.mcclanahan.cx/php_imlib/). It is a PHP module for Imlib2 library. Supports true-color images, alpha blending, TTF fonts, gradients and other cool things. It does NOT compile with PHP version greater than 4.0.5 due to some changes in PHP config macros. To compile with version 4.0.6 and above you will need to download my patch from http://pp.siedziba.pl/archives/pc/php_imlib_patch.tar.gz. This patch also adds some image filtering and caching functions and fixes incorrect IMLIB_TEXT* constants registration. There is also already patched version available: http://pp.siedziba.pl/archives/pc/php_imlib-0.3-patched.tar.gz I use it to generate thumbnails on http://www.tech4.pl/. Seems quite stable when used with 1.0.3 version of Imlib2. -- Regards, Piotr Pawlow mailto:[EMAIL PROTECTED], homepage: http://pp.siedziba.pl -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP4.0.6, php_iconv bugs
Hello, I have noticed that php_iconv sometimes fails to convert the string due to invalid sequence of characters on input, and there is no way to find out where the bad sequence is. I think there should be an optional parameter added to iconv() function, a variable passed by reference. If used, iconv would in case of an error return partially converted string, and set this variable to character index at which the conversion failed. Also, php_iconv makes a wrong assumption that the longest sequence representing one char is as long as sizeof(ucs4_t). For example, unicode combined characters can easily be longer, the same applies to encodings like 'JAVA' (\u). -- Best regards, Piotr Pawlow mailto:[EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Possible feature for current version of PHP or PHP 4.1/5.0.
Brian Moon [EMAIL PROTECTED] wrote: I am -1 on yet another new function. Because, if you create a new include_local or whatever, people are gonna want include_local_once and so on and so forth. What do you say about include local($str), include_once local($str) ? Just one new function, no more :-) (of course the function name should be different, but I can't figure out a good name right now :-) I think that this include 'bug' should be fixed long before, now it is too late for changes. IMHO it would break many scripts. -- Best regards, Piotr Pawlow mailto:[EMAIL PROTECTED], homepage: http://pp.siedziba.pl -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]