Alex Tech Adventures The webs best tutorials!

Welcome, Guest
Please Login or Register.    Lost Password?

Speedometer style text curved around a semicircle using PHP with GD and some calculus.
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Speedometer style text curved around a semicircle using PHP with GD and some calculus.
#724
Speedometer style text curved around a semicircle using PHP with GD and some calculus. 1 Year, 6 Months ago Karma: 16
alexanderrv
Administrator
Posts: 279
graph
User Offline Click here to see the profile of this user
Gender: Male tmthv2 alexchatonly@hotmail.com Location: Freeport, Bahamas Birthdate: 1989-04-14
The administrator has disabled public write access.
 
#725
Re: Speedometer style text curved around a semicircle using PHP with GD and some calculus. 1 Year, 6 Months ago Karma: 0
Hello,

I am trying to incorporate this slick piece of curved code into something that allows me to have a sentence of text ride the border of the curve. I have used the imageSmoothArc function as you recommended.

However, when launching the code that you have created, I get an error on imagettftext. You can see it is happens in the for loop (line 44) and at the final call outside the loop.

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/ci-oursitesb-com/public_html/test.php on line 44
Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/ci-oursitesb-com/public_html/test.php on line 44
Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/ci-oursitesb-com/public_html/test.php on line 44
Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/ci-oursitesb-com/public_html/test.php on line 44
Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/ci-oursitesb-com/public_html/test.php on line 44
Warning: imagettftext() [function.imagettftext]: Could not find/open font in /home/ci-oursitesb-com/public_html/test.php on line 47

Can you give me any idea why this would fail ?

Thanks so much for your effort on this creation.

Jay Lepore
CompuMatter
compumatter
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#726
Re: Speedometer style text curved around a semicircle using PHP with GD and some calculus. 1 Year, 6 Months ago Karma: 16
Hehe, never thought this old articles would be revived.

Its failing because it cannot find the font file. I guess I should have mentioned about it and not assume everyone knows how imagettftext() works.
Back in step 0, i guess because for some reason I have this code before step 1, where I define the variables you need to give relative path for font file you want to use for $font = . You can either copy it from your OS fonts directory or download them from any other fonts sites like www.1001freefonts.com/
alexanderrv
Administrator
Posts: 279
graph
User Offline Click here to see the profile of this user
Gender: Male tmthv2 alexchatonly@hotmail.com Location: Freeport, Bahamas Birthdate: 1989-04-14
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: alexanderrv
You are here: Home Forum

Statistics

Members : 1401
Content : 42
Web Links : 1
Content View Hits : 191204

Poll

Interested in TinyBrowser and TinyMce plugin for ZF?
 

Who's Online

We have 39 guests online