472,338 Members | 1,687 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,338 software developers and data experts.

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
Jul 17 '05 #1
3 4167
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
Jul 17 '05 #2
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/

Jul 17 '05 #3
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/

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Enri | last post by:
Hello to everyone, the web app I'm starting to make must run under windows too. Before it'll be too late, I'd like to know whether the php...
188
by: Ilias Lazaridis | last post by:
I'm a newcomer to python: - E01: The Java Failure - May Python Helps? http://groups-beta.google.com/group/comp.lang.python/msg/75f0c5c35374f553...
10
by: Bill Davidson | last post by:
Hi there, Please forgive me for posting this article on multiple groups. Being new in the newsgroups, I was not sure which group would have been...
12
by: code_wrong | last post by:
Hi, as the subject says How many browsers must we support? How many are there exactly? When I run this JavaScript in Firefox and IE6: ...
7
by: fox | last post by:
Maybe this is not the best group to ask this question, but I don't know a better one. I'm looking for a *portable* program in C (I mean source...
7
by: Terry Olsen | last post by:
I paste the following code into each project to get XP theme support. 'Add this at the beginning of any program to enable Windows XP Visual Styles...
2
by: AMDRIT | last post by:
Hello everyone, I have created a custom component and one of its properties is a class object with it's own properties. During runtime, I can...
5
by: John Olbert | last post by:
Subject: Error is Object doesn't support this property or method I am trying to pass a C# string under Vs2005 (Net2) to an Vb6 ActiveX Control. ...
1
by: =?Utf-8?B?QW5kZXJ3IE1pbGxlcg==?= | last post by:
Apologies for posting in this forum, I don't see a more appropriate group... I'm trying to understand the timeline for Window 2003 ending...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.