Created
May 19, 2020 17:41
-
-
Save RodrigoPauletti/f2ac94187850243bb6039dcc1b3bd110 to your computer and use it in GitHub Desktop.
This file contains 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
@font-path: '../fonts'; // Font's path | |
@font-face { | |
font-family: 'FONT_NAME'; | |
src: url('@{font-path}/MY_FONT_FILENAME.eot'); | |
src: url('@{font-path}/MY_FONT_FILENAME.eot?#iefix') format('embedded-opentype'), | |
url('@{font-path}/MY_FONT_FILENAME.woff2') format('woff2'), | |
url('@{font-path}/MY_FONT_FILENAME.woff') format('woff'), | |
url('@{font-path}/MY_FONT_FILENAME.ttf') format('truetype'), | |
url('@{font-path}/MY_FONT_FILENAME.svg#ID') format('svg'); // In this case, the ID is the value of property 'id' on 'font' tag. E.g. <font id="MY_FONT_ID"> | |
font-weight: normal; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment