473,396 Members | 1,852 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

PHP/GD and TrueType Fonts

I'm have GD 2.0.1 - php 4.3.5 compiled

--with-gd--enable-gd-native-ttf--enable-gd-jis-conv
--with-freetype-dir=/usr/local' '--with-t1lib=/usr/local
--with-jpeg-dir=/usr/local--with-png-dir=/usr/local'
--with-xpm-dir=/usr/X11R6'
running under FreeBSD 4.8.
GD's working properly as I'm able to generate graph images and resample
pre-existing images however I'm trying to render images with dynamic text
but have the feeling that the server simply doesn't have the TrueType fonts
installed.

Does anyone know how to install these fonts and if so, where would the
default font directory be located?

Thanks in advance,

-Jamie

Jul 17 '05 #1
1 3514
ljb
do*******@yahoo.com wrote:
I'm have GD 2.0.1 - php 4.3.5 compiled
...
GD's working properly as I'm able to generate graph images and resample
pre-existing images however I'm trying to render images with dynamic text
but have the feeling that the server simply doesn't have the TrueType fonts
installed.

Does anyone know how to install these fonts and if so, where would the
default font directory be located?


I suggest you use a full path in your scripts to reference the TrueType
fonts, which you can install anywhere you like. Don't rely on PHP and GD
looking for the fonts in a special directory. There does seem to be a
default search path, and an environment variable GDFONTPATH which overrides
it, but that fact that neither of these seems to be documented would make
me hesitate to rely on them.
Jul 17 '05 #2

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

Similar topics

0
by: Stefan De Schepper | last post by:
Hi, How can I find out if a font is a truetype or opentype? (VB.Net or C#) Thanks in advance, Stefan.
4
by: Ben | last post by:
Does anyone have any experience using the TrueType bytecode interpreter to display fonts in PHP under Windows? I'm running Windows XP, PHP 4.3.11, GD 2.0.28 with FreeType enabled. It all works...
4
by: L | last post by:
Hi there, Does C# support OpenType fonts? My c# application is not recognizing OpenType fonts. Thanks, Lalasa.
0
by: Joshua T. Moore | last post by:
I must print with a non-TrueType font for the printer to do specific features. I P/Invoked CreateFont to get the (IntPtr) handle of the font, but System.Drawing.Graphics.DrawString's...
2
by: Jim Flanagan | last post by:
Hi... I want to write a small app/tool in vb.net that will allow me to read in a font file, interpret the data and create a file that could be used in an led sign system. i.e. convert the font...
4
by: Aaron Gray | last post by:
Is there anyway to get a list of all the availiable fonts in Javascript ? Aaron
1
by: RuthC | last post by:
Hi, How to Write text with underline to the image using TrueType fonts please help
0
by: Andreas Tawn | last post by:
-----Original Message----- g] On Behalf Of Steve Holden Can't help with a recipe, but here's the formal spec if want to figure it out yourself. ...
2
by: Steve Holden | last post by:
Fredrik Lundh wrote: Thanks so much, Fredrik. The reason I asked is because I found the specification completely opaque ... regards Steve -- Steve Holden +1 571 484 6266 +1 800 494...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.