3 lignes de code pour convertir une #police_de_caracteres en base64 pour un fichier #css
Dans le terminal
base64 name-of-thefont-file-name.woff2 > base64encoded.txt
CSS
@font-face {font-family: “name-of-thefont”; src:url(data:font/woff;charset=utf-8;base64,font-file-in-encoded-form) format(’woff2’); font-weight: normal; font-style: normal; }
.madiv{
font-family:name-of-thefont;
}
#font