![]() |
Home Community Mys-Script Creative Off-Topic |
|
![]() |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
![]()
- How to change the font of your siggy images?
- How to center the text on the siggy images? Thank you:rolleyes: |
#2
|
|||
|
|||
![]()
someone?
|
#3
|
||||
|
||||
![]()
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:
|
#4
|
|||
|
|||
![]()
Thank you :D !
PS; I play the sims to :p |
#5
|
|||
|
|||
![]()
It works thank you :D!
|
#6
|
|||
|
|||
![]() Quote:
|
#7
|
|||
|
|||
![]()
& how can i center the tekst?
|
#8
|
|||
|
|||
![]()
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:
|
#9
|
|||
|
|||
![]()
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 ;) |
#10
|
|||
|
|||
![]()
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 |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CSS: Using a Non-Standard Font | Kaeliah | Tutorials and Tips | 0 | 01-31-2011 08:50 PM |
Font Question. | shadowclash1 | Other Chat | 0 | 10-30-2010 04:26 AM |
how to change background of siggy? | vexel | Questions and Supports | 7 | 09-29-2010 10:54 AM |
I want change font | jcga | Questions and Supports | 4 | 02-14-2010 08:47 AM |
A PHP font question | exdiogene | Webmasters Area | 5 | 10-17-2009 08:08 PM |
What's New? |
What's Hot? |
What's Popular? |