<!doctype html> <meta charset=utf-8> <style> @font-face { font-family: Ahem; src: local("Ahem"), url(Ahem.ttf); } div { width: 0; height: 0; position: absolute; top: 50px; font: 0.1px/0 Ahem; transform: scale(250); } </style> <div>test</div>