Foros del Web » Creando para Internet » CSS »

[SOLUCIONADO] Leer fuente s

Estas en el tema de Leer fuente s en el foro de CSS en Foros del Web. Código HTML: <!DOCTYPE HTML> <html> <head> <meta http-equiv="content-type" content= "text/html" /> <title> Fuente </title> </head> <body> <style> @font-face { font-family: "mifuente"; src: url('localhost/fuentes/YanoneKaffeesatz-Light.ttf'); } p ...
  #1 (permalink)  
Antiguo 19/11/2017, 14:35
 
Fecha de Ingreso: julio-2014
Mensajes: 59
Antigüedad: 9 años, 9 meses
Puntos: 0
Leer fuente s

Código HTML:
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="content-type" content="text/html" />

	<title>Fuente</title>
</head>

<body>


<style>


@font-face {
    font-family: "mifuente";
    src: url('localhost/fuentes/YanoneKaffeesatz-Light.ttf');
}

p {

    font-family:  "mifuente";
    font-size: 150px;
} 


</style>


<p>Hola</p>

</body>
</html> 
El problema es que no lee la fuente... que esta mal disculpen
  #2 (permalink)  
Antiguo 19/11/2017, 15:47
Avatar de petit89  
Fecha de Ingreso: marzo-2011
Mensajes: 1.135
Antigüedad: 13 años, 1 mes
Puntos: 170
Respuesta: Leer fuente s

agrega el http.. si lo pones sin el, te toma como que localhost es carpeta...

http://localhost/fuentes/YanoneKaffeesatz-Light.ttf
__________________
█ WebHosting / Reseller a bajo costo | Uptime Garantizado | Soporte en Español e Ingles
¿Te sirvió la respuesta? Deja un +1 (Triangulo negro al lado derecho)
  #3 (permalink)  
Antiguo 19/11/2017, 15:54
 
Fecha de Ingreso: julio-2014
Mensajes: 59
Antigüedad: 9 años, 9 meses
Puntos: 0
Respuesta: Leer fuente css desde servidor

En eso tienes razón sin embargo sigue sin leer la fuente

Código HTML:
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="content-type" content="text/html" />
<title>Fuente</title>
</head>

<body>


<style>



@font-face {
    font-family: mifuente;
    src: url('http://localhost/fuentes/YanoneKaffeesatz-Light.ttf');
}

p {

    font-family:  mifuente;
    font-size: 150px;
} 


</style>


<p>Hola Este es mi tipo de fuente</p>

</body>
</html> 
He intentado asi:

font-family: mifuente;
font-family: "mifuente";
font-family: 'mifuente'";
  #4 (permalink)  
Antiguo 19/11/2017, 15:55
 
Fecha de Ingreso: julio-2014
Mensajes: 59
Antigüedad: 9 años, 9 meses
Puntos: 0
Respuesta: Leer fuente css desde servidor

Cita:
Iniciado por domichis Ver Mensaje
En eso tienes razón sin embargo sigue sin leer la fuente

Código HTML:
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="content-type" content="text/html" />
<title>Fuente</title>
</head>

<body>


<style>



@font-face {
    font-family: mifuente;
    src: url('http://localhost/fuentes/YanoneKaffeesatz-Light.ttf');
}

p {

    font-family:  mifuente;
    font-size: 150px;
} 


</style>


<p>Hola Este es mi tipo de fuente</p>

</body>
</html> 
He intentado asi:

font-family: mifuente;
font-family: "mifuente";
font-family: 'mifuente';

Etiquetas: fuente
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 10:03.