Created
March 21, 2015 10:32
-
-
Save kathangeorg/f2cc7e872c942ee9e28a to your computer and use it in GitHub Desktop.
Less Webfont Example
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
//** Load fonts from this directory. | |
@icon-font-path-custom: "/typo3conf/path/to/your/fonts/"; | |
@font-face { | |
font-family: 'YourFont'; | |
font-style: normal; | |
font-weight: 400; | |
src: url('@{icon-font-path-custom}your-webfont.eot'); | |
src: url('@{icon-font-path-custom}your-webfont.eot?#iefix') format('embedded-opentype'), | |
url('@{icon-font-path-custom}your-webfont.woff') format('woff'), | |
url('@{icon-font-path-custom}your-webfont.ttf') format('truetype'); | |
} | |
body { | |
font-family: 'YourFont', sans-serif; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment