<!DOCTYPE HTML> <style> @font-face { font-family: Ahem; src: url(../fonts/Ahem.ttf); } * { font-family: Ahem; } </style> <body> <div style="width: 50px; height: 50px; background: green"> </div> </body>