Created
August 2, 2019 10:14
-
-
Save BRELID/f711f6bdbcec4c5da35afd8ef003845c to your computer and use it in GitHub Desktop.
How to import your fonts in css / Comment importer vos fonts en css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* How to add fonts in your website | |
* Comment ajouter des fonts à votre site | |
* | |
* 1) Create a font-face with a name and the link of your font in your css file | |
* Créer une font-face avec un nom et le lien vers votre font dans votre fichier css | |
* | |
* 2) Select your font with the name of your font-face where you want where you want to use it | |
* Selectionner votre font, là où vous voulez l'utiliser, grace au nom de votre font-face | |
* | |
* 3) Enjoy! | |
* | |
* | |
* PS: You've to repeat these steps for all the fonts you want to import | |
* Vous devez refaire ces étapes pour toutes les fonts que vous voulez importer | |
**/ | |
/* STEP 1 / ETAPE 1*/ | |
@font-face { | |
font-family: 'Old London'; | |
src: url('Olondona.otf') format('truetype'); | |
font-weight: normal; | |
font-style: normal; | |
} | |
/* STEP 2 / ETAPE 2*/ | |
h1{ | |
font-family: 'Old London', 'Times New Roman', Times, serif; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment