Re: gd2 with t1lib
| From: | Blackjack | Date: | Sat, 19 Nov 2011 16:14:17 +0000 |
| Subject: | Re: gd2 with t1lib | ||
| References: | 1 2 3 4 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-30734@lists.php.net to get a copy of this message | ||
Hi Pierre
Unfortunately it is not a free font and it seams that other (newer) ps1 fonts are most likely convertet from true type and therefore have the special characters where they should be.
But that does not help me because i have to use exactly the specific fonts and they worked fine with the imageps-functions. I will send you one of them by separate e-mail for testing. Please have in mind that converting all the fonts is not an option.
Thanks a lot
"Pierre Joye" schrieb im Newsbeitrag news:CAEZPtU6iViPjf_owaG7etuAqmR_5G_XGKQRZ=XnDXfJOB_7YQg@mail.gmail.com...
please send me the font, so I can test and propose a solution.
On Sat, Nov 19, 2011 at 3:03 PM, Blackjack <blackjack@mailinator.com> wrote:
After more testing I noticed that no special characters like german umlauts or french characters are displayed. This is a common problem with ps1 fonts and with t1lib one can solve it with imagepsencodefont. I could not find a solution yet. Some mention to convert the string first to i.e. utf-8 or to use html-specific characters like ä or ü but this can only work for fonts with a proper encoding vector (and ps1 fonts don't). So i was not successfull with this. Of course, with arial.ttf there is not problem with umlauts. I also tried to use the extrainfo parameter with imagefttext but with no success: $text=imagefttext($img, 28, 0, 152, 56, $black, "fonts/HLBEuro_.PFB", "Kürbis", array('flags'=>gdFTEX_IsoLatin1)); Since I could not find (or understand) a documentation for the extrainfo parameter, am I wrong with my code? Or is there an other solution? "Pierre Joye" schrieb im Newsbeitrag news:CAEZPtU7Hy03-2MmHB0Zy2UYHHCV71m2gWrzuHmeXQp5un3Yxgg@mail.gmail.com... hi, Freetype supports postscript fonts as well, what prevents you to use the ft functions? On Wed, Nov 16, 2011 at 8:39 PM, blackjack <blackjack@mailinator.com> wrote:-- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.orgI just upgraded from php 5.2.3 to 5.3.8-nts-win32-vc9-x86 with the installer from php.net. Unfortunately the precompiled php_gd2.dll does not support t1lib and my old one does not work with the new installation. I need the t1lib support because of the function imagepsloadfont() but I don't have the knowledge and the environment to build the php binaries by myself. I'd be very happy if someone could post a php_gd2.dll that works for me. --------------= Posted using GrabIt =---------------- ------= Binary Usenet downloading made easy =--------- -= Get GrabIt for free from http://www.shemes.com/ =- -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php-- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php