Ver Mensaje Individual
  #3 (permalink)  
Antiguo 07/08/2007, 14:57
Bans22
 
Fecha de Ingreso: agosto-2007
Mensajes: 3
Antigüedad: 16 años, 9 meses
Puntos: 0
Pregunta Re: Estilo de fuentes

Hola gracias por responder mi solcitud, a que te refieres a embeber la fuente
he buscado codigo pero ninguno de ellos me da resulatdos, por ejemplo este:

<?php
header("Content-type: image/jpeg");
// constants
define("FONT_SIZE", "24");
define("FONT_FAMILY", "fuente.ttf");
// parameters
$text = isset($_REQUEST["text"])? $_REQUEST["text"]: "???";
// image dimensions
$box = imagettfbbox(FONT_SIZE, 0, "zecbt.ttf", $text);
$width = FONT_SIZE + 4;
$height = $box[2] - $box[0] + 10;
// new image
$img = @imagecreate($height, $width);
imagecolorallocate($img, 0xff, 0xff, 0xff); // white
// text
$black = imagecolorallocate($img, 0x00, 0x00, 0x00); // black
imagettftext($img, FONT_SIZE, 0, 0, $width - 6, $black, FONT_FAMILY, $text);
imagejpeg($img);
imagedestroy($img);
?>

<img src="images/text.jpg.php?text=<?=urlencode("Este texto tiene una fuente diferente a la usual")?>" />

tambien pobre con este pero nada

<style>
@font-face {
font-family: "Blobs";
src: url("http://tipos-fonst.gratishost.com/images/BLOBS___.TTF");
}
body {font-family:"Blobs"}
</style>

Alguien me podria ayudar o es cierto que no hay manera de hacerlo.