php-windows Digest 22 Nov 2011 17:13:05 -0000 Issue 3984

Topics (messages 30733 through 30735):

Re: gd2 with t1lib
        30733 by: Pierre Joye
        30734 by: Blackjack
        30735 by: Blackjack

Administrivia:

To subscribe to the digest, e-mail:
        php-windows-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-windows-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-wind...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
please send me the font, so I can test and propose a solution.

On Sat, Nov 19, 2011 at 3:03 PM, Blackjack <blackj...@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 &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-2mmhb0zy2uyhhcv71m2gwrzuhmexqp5un3y...@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 <blackj...@mailinator.com> 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
>
>



-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

--- End Message ---
--- Begin 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_7...@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 <blackj...@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 &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-2mmhb0zy2uyhhcv71m2gwrzuhmexqp5un3y...@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 <blackj...@mailinator.com> 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





--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org
--- End Message ---
--- Begin Message ---
@Pierre Joye
I hope you got the font i sent to you. Otherwise, please let me know.

@PHP-WIN
In the meanwhile i managed to install the VC9 Environment and to compile php on windows so it looks quiet the same like the 5.3.8-nts-win32-vc9-x86 package from php.net.

But when compiling with the --with-t1lib I get the following Warning:
Checking for library T1_StaticMD.lib ... <not found>
WARNING: t1lib not enabled; libraries and headers not found

1. Now, where can i get this T1_StaticMD.lib?
2. Is it a bug that the binaries from php.net do not include t1lib support
       (also see https://bugs.php.net/bug.php?id=32809)



"Pierre Joye" schrieb im Newsbeitrag news:CAEZPtU6iViPjf_owaG7etuAqmR_5G_XGKQRZ=xndxfjob_7...@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 <blackj...@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 &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-2mmhb0zy2uyhhcv71m2gwrzuhmexqp5un3y...@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 <blackj...@mailinator.com> 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





--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org
--- End Message ---

Reply via email to