t1lib support on windows

This is a discussion on t1lib support on windows within the PHP Language forums, part of the PHP Programming Forums category; I don't normally do PHP development work on Windows but I need to port an image creation tool to ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2005
Chris Hope
 
Posts: n/a
Default t1lib support on windows

I don't normally do PHP development work on Windows but I need to port
an image creation tool to Windows. So I have loaded the php_gd2.dll
module for image creation support but it doesn't include the t1lib
functions and the code relies on the imagepsbbox(), imagepstext() and
imagepsloadfont() functions.

The result from gd_info() is:

array(11) {
["GD Version"]=> string(27) "bundled (2.0.28 compatible)"
["FreeType Support"]=> bool(true)
["FreeType Linkage"]=> string(13) "with freetype"
["T1Lib Support"]=> bool(false)
["GIF Read Support"]=> bool(true)
["GIF Create Support"]=> bool(true)
["JPG Support"]=> bool(true)
["PNG Support"]=> bool(true)
["WBMP Support"]=> bool(true)
["XBM Support"]=> bool(true)
["JIS-mapped Japanese Font Support"]=> bool(false)
}

Anyone have any idea where I can get a php_gd2.dll which includes the
t1lib? I can always recode the functions to use TTF fonts instead but
only want to do that as a last resort.

--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com
Reply With Quote
  #2 (permalink)  
Old 04-22-2005
Chris Hope
 
Posts: n/a
Default Re: t1lib support on windows

Chris Hope wrote:

> I don't normally do PHP development work on Windows but I need to port
> an image creation tool to Windows. So I have loaded the php_gd2.dll
> module for image creation support but it doesn't include the t1lib
> functions and the code relies on the imagepsbbox(), imagepstext() and
> imagepsloadfont() functions.


[snip]

> Anyone have any idea where I can get a php_gd2.dll which includes the
> t1lib? I can always recode the functions to use TTF fonts instead but
> only want to do that as a last resort.


So what I did in the end was compile a PHP binary using Cygwin,
compiling in the modules I needed and it worked fine.

I did initially try compiling the PHP GD module myself with Visual C++
but couldn't get it to work and couldn't find any help searching Google
and Google Groups.

--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com
Reply With Quote
  #3 (permalink)  
Old 04-24-2005
R. Rajesh Jeba Anbiah
 
Posts: n/a
Default Re: t1lib support on windows

Chris Hope wrote:
> Chris Hope wrote:
>
> > I don't normally do PHP development work on Windows but I need to

port
> > an image creation tool to Windows. So I have loaded the php_gd2.dll
> > module for image creation support but it doesn't include the t1lib
> > functions and the code relies on the imagepsbbox(), imagepstext()

and
> > imagepsloadfont() functions.

>
> [snip]
>
> > Anyone have any idea where I can get a php_gd2.dll which includes

the
> > t1lib? I can always recode the functions to use TTF fonts instead

but
> > only want to do that as a last resort.

>
> So what I did in the end was compile a PHP binary using Cygwin,
> compiling in the modules I needed and it worked fine.


This is really a good solution. Glad to see, you've found the way.
Sometimes ago, I also wanted to use those functions, but having found
no way, decided not to use those functions.

> I did initially try compiling the PHP GD module myself with Visual

C++
> but couldn't get it to work and couldn't find any help searching

Google
> and Google Groups.


I think, this has to be brought to PHP developers' notice. Will do
that sometimes later.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Reply With Quote
  #4 (permalink)  
Old 04-26-2005
R. Rajesh Jeba Anbiah
 
Posts: n/a
Default Re: t1lib support on windows

Chris Hope wrote:
<snip>
> Anyone have any idea where I can get a php_gd2.dll which includes the
> t1lib? I can always recode the functions to use TTF fonts instead but
> only want to do that as a last resort.


Update:

Just the support has been added <http://bugs.php.net/32809> I should
have reported it earlier.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:16 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0