![]() |
How to change the font of siggy.php ?
- How to change the font of your siggy images?
- How to center the text on the siggy images? Thank you:rolleyes: |
RE: How to change the font of siggy.php ?
someone?
|
RE: How to change the font of siggy.php ?
LOL I was actually messing around with that today, It's actually very easy to do (even if you want to use your own font)
If you look at mine, (from pixelpets.co.cc :D) I set mine to use a font i downloaded for my recent obsession (Simlish from The Sims game series) 1. Find a font (I've had luck with Google and dafont.com) 2. You will most likely have to convert the font to a .gdf file so I reccomend http://www.wedwick.com/wftopf.exe if its a TrueType font. 3. Upload the font to the fonts folder on your server. 4. Open up siggy.php and look for the following lines (around Line 170) PHP Code:
5. Insert the following code (with obvious modifications BEFORE the imagestring() lines PHP Code:
6. Change the 2nd variable in the imagestring lines you want this font to be used (in this case replace the 12s) In the end it should look somewhat similar to this PHP Code:
|
RE: How to change the font of siggy.php ?
Thank you :D !
PS; I play the sims to :p |
RE: How to change the font of siggy.php ?
It works thank you :D!
|
RE: How to change the font of siggy.php ?
Quote:
http://www.adoptapoke.com/siggy.php?id=455 |
RE: How to change the font of siggy.php ?
& how can i center the tekst?
|
RE: How to change the font of siggy.php ?
I can't guarantee you that this is going to work for your site but I hope this can be your solution even if it's just temporary
before PHP Code:
PHP Code:
PHP Code:
Final code should looks like this PHP Code:
|
RE: How to change the font of siggy.php ?
fadillzzz,
You mean i must change $font = imageloadfont('fonts/example.gdf'); to $font = imagettftext('fonts/example.ttf'); ? & for your center code :s, i get this; http://www.secret.uphero.com/adoptables/siggy.php?id=2 the text goes "out" the image :S, already thanks, Niels ;) |
RE: How to change the font of siggy.php ?
No, you don't need the imageloadfont to use imagettftext
read this http://php.net/manual/en/function.imagettftext.php and compare it to http://php.net/manual/en/function.imagestring.php imageloadfont is needed only if you want to use imagestring with custom font take a look at my code PHP Code:
Don't forget to define the variable like '$black' and '$font' before the imagettftext Also, if you are still wondering how to center the text (using imagestring), read this http://www.php.net/manual/en/function.imagestring.php#94306 |
All times are GMT -5. The time now is 05:12 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.