Tecnologías XML / ePUB / ePub für (In)Designer / Fuentes incorporadas y caracteres especiales / Estilos y grosores de fuente

(Extracto de «ePub für (In)Designer — Mit InDesign Schritt für Schritt zum E-Book» de Sascha Heck & Yves Apel)

Hasta ahora solo se indicaron nombres de fuente, mostrando Regular o Normal. Añada dos líneas de código para cursiva o negrita.

La cursiva utiliza el código font-style: italic;. Para font-style normal | italic | oblique | inherit (hereda el estilo del elemento padre) pueden utilizarse.

La negrita utiliza el código font-weight: bold;. Para font-weight normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit pueden utilizarse.

Combine ambos para definir negrita cursiva.

p.Regular {      
     font-family: "Times New Roman", serif;
     font-weight: normal;
     font-style: normal;
  }
      
p.Bold {
     font-family: "Times New Roman", serif;
     font-weight: bold;
     font-style: normal;
  }
      
p.Italic {
     font-family: "Times New Roman", serif;
     font-weight: normal;
     font-style: italic;
  }
      
p.Bold-Italic {
     font-family: "Times New Roman", serif;
     font-weight: bold;
     font-style: italic;
  }

  

<< atrás

siguiente >>

 

 

 

volver arriba