Technologies XML / ePUB / ePub für (In)Designer / Polices intégrées et caractères spéciaux / Styles et graisses de police

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

Seuls les noms de police ont été indiqués, donnant Regular ou Normal. Ajoutez deux lignes de code pour l’italique ou le gras.

L’italique utilise le code font-style: italic;. Pour font-style normal | italic | oblique | inherit (hérite du style de l’élément parent) sont utilisables.

Le gras utilise le code font-weight: bold;. Pour font-weight normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit sont utilisables.

Combinez les deux pour définir du gras italique.

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;
  }

  

 

 

 

haut de page