Re: gd2 with t1lib

"Blackjack" <[email protected]>
Newsgroups gmane.comp.php.windows
Message-ID <[email protected]>
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 &auml; or &#252; 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 <[email protected]> wrote:
> I 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.