DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Embedded Fonts In Modules

01.05.2008
| 5219 views |
  • submit to reddit
        How to use embedded fonts in modules and late-load the embedded font.
Save TrueType font file as ./Arial.ttf
@font-face {
        src:url("./Arial.ttf");
        font-family: myFont;
}

Application
{
	font-family: 	myFont;
	font-size: 	10px;
}