<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> <HTML> <HEAD> <TITLE>Essai de police</TITLE> <STYLE TYPE="text/css" MEDIA="screen, print"> @font-face { font-family: "test"; src: url("http://mr.bassman.free.fr/polices/Goonies.ttf"); } BODY{ font-family: "test", serif; } #unnamed1 { font-family: "test", serif; } </STYLE> </HEAD> Goonies </HTML>
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> <HTML> <HEAD> <TITLE>Essai de police</TITLE> <STYLE TYPE="text/css"> <!-- /* $WEFT -- Created by: Bassman on 07/10/2005 -- */ @font-face { font-family: Goonies; font-style: normal; font-weight: 700; src: url(GOONIES0.eot); } H1 { font-family: Goonies, Arial, sans-serif; font-size: 36px; color: #008000; } --> </STYLE> </HEAD> Goonies </HTML>
L'image « http://localhost/SVO/test.php » ne peut être affichée, car elle contient des erreurs.
<? // Définition du content-type header("Content-type: image/png"); // Création de l'image $im = imagecreate(400, 300); // Création de quelques couleurs $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128, 128, 128); $black = imagecolorallocate($im, 0, 0, 0); // Le texte à dessiner $text = 'Les Goonies'; // Remplacez le chemin par votre propre chemin de police $font = 'Goonies.ttf'; // Ajout d'ombres au texte imagettftext($im, 20, 0, 110, 210, $grey, $font, $text); // Ajout du texte imagettftext($im, 20, 0, 100, 200, $black, $font, $text); // Utiliser imagepng() donnera un texte plus claire, // comparé à l'utilisation de la fonction imagejpeg() imagepng($im); imagedestroy($im); ?>
<?php // Définition du content-type header("Content-type: image/png"); // Création de l'image $im = imagecreate(400, 300); // Création de quelques couleurs $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128, 128, 128); $black = imagecolorallocate($im, 0, 0, 0); // Le texte à dessiner $text = 'Les Goonies'; // Remplacez le chemin par votre propre chemin de police $font = 'Goonies.ttf'; // Ajout d'ombres au texte imagettftext($im, 20, 0, 110, 210, $grey, $font, $text); // Ajout du texte imagettftext($im, 20, 0, 100, 200, $black, $font, $text); // Utiliser imagepng() donnera un texte plus claire, // comparé à l'utilisation de la fonction imagejpeg() imagepng($im); imagedestroy($im); ?>
<?php function img() { // Définition du content-type header("Content-type: image/png"); // Création de l'image $im = imagecreate(400, 300); // Création de quelques couleurs $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128, 128, 128); $black = imagecolorallocate($im, 0, 0, 0); // Le texte à dessiner $text = 'Les Goonies'; // Remplacez le chemin par votre propre chemin de police $font = 'Goonies.ttf'; // Ajout d'ombres au texte imagettftext($im, 20, 0, 110, 210, $grey, $font, $text); // Ajout du texte imagettftext($im, 20, 0, 100, 200, $black, $font, $text); // Utiliser imagepng() donnera un texte plus claire, // comparé à l'utilisation de la fonction imagejpeg() imagepng($im); imagedestroy($im); } ?>
<?php include("img.php"); img(); ?>