Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| webdev:html_css:ajout_dune_police [02/04/2015 01:20] – modification externe 127.0.0.1 | webdev:html_css:ajout_dune_police [19/04/2019 20:50] (Version actuelle) – dolo | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | ====== Ajout d'une police ====== | ||
| + | |||
| + | Convertisseur de police web : | ||
| + | FontSquirrel (vérifie si les polices sont libres) : [[http:// | ||
| + | Web Font Generator (pas de vérification) : [[https:// | ||
| + | |||
| + | < | ||
| + | @font-face { | ||
| + | font-family: | ||
| + | |||
| + | src: url(' | ||
| + | src: url(' | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | font-weight: | ||
| + | font-style: normal; | ||
| + | } | ||
| + | |||
| + | @font-face { | ||
| + | font-family: | ||
| + | |||
| + | src: url(' | ||
| + | src: url(' | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | font-weight: | ||
| + | font-style: normal; | ||
| + | }</ | ||
| + | |||
| + | **Version de fontsquirrel :** | ||
| + | < | ||
| + | @font-face { | ||
| + | font-family: | ||
| + | | ||
| + | src: url(' | ||
| + | src: url(' | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | font-weight: | ||
| + | font-style: normal; | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | Favoriser les OpenType Fonts (OTF) plutôt que TrueType Fonts (TTF) ? [[https:// | ||
| + | |||
| + | ----------- | ||
| + | ===== Ajouter un contour en CSS ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | Ça rend quand même dégueulasse et mauvaise compatibilité... | ||
| + | |||