Image font > Size.

Gestart doorWouterr0 reacties46 weergaven

1 berichten · pagina 1 van 1

Wouterr

Lid · Topicstarter

Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

Hey,

Ik ben bezig met een project, alleen hoe kan ik,
Als ik een eigen (Gedownload emo ) Font erin zet ( dat lukt me )
Maar dan staat het er zo klein.
Ik praat over ImageCreate en Imagestring enz.(php)
Hoe krijg ik die font groter?

Bedankt!

toevoeging op 6 oktober 2011, 14:53:42:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]includes/connect.php[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$string[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]UsersOnline[COLOR= #007700]();[/COLOR]
[COLOR= #0000BB]$string[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000] NLMinecrafterss online.[/COLOR][COLOR= #007700];[/COLOR]

[COLOR= #0000BB]$font[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]Font/EvilSporkGirl.tff[/COLOR][COLOR= #007700];[/COLOR]

[COLOR= #0000BB]$image[/COLOR] [COLOR= #007700]=[/COLOR] imagecreatefrompng[COLOR= #007700]([/COLOR][COLOR= #DD0000]"Public/Images/banner.png"[/COLOR][COLOR= #007700]);[/COLOR]

imagettftext[COLOR= #007700]([/COLOR][COLOR= #0000BB]$image[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]20[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]321[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]40[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$font[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$string[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Content-Type: image/png[/COLOR][COLOR= #007700]);[/COLOR]

imagepng[COLOR= #007700]([/COLOR][COLOR= #0000BB]$image[/COLOR][COLOR= #007700]);[/COLOR]
imagedestroy[COLOR= #007700]([/COLOR][COLOR= #0000BB]$image[/COLOR][COLOR= #007700]);[/COLOR]
?>


Geeft het plaatje zonder NLMinecrafters online. (Text helemaal weg?)
X en Y kloppen, mijn vorige code werkte het gewoon, alleen was de font zo klein.
En hier zou ik de grote moeten kunnen instellen ;p.

--Fixed biggrin--
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren