Last active
February 25, 2019 23:07
-
-
Save michaelbourne/f941c4bb857c68ab3f4f38ee88f12ba8 to your computer and use it in GitHub Desktop.
Add custom font families to the Pro font manager
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
(function(){ var config = cornerstoneApp.lookup('service:store').peekRecord('option','cornerstone_font_config');config.set('value.customItems', [ { family: 'MikesFont', stack: 'MikesFont, sans-serif', weights: [ '300', '500' ]}]);config.save()})(); |
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-face { | |
font-family: 'MikesFont'; | |
src: url('./fonts/MikesFont.eot'); | |
src: url('./fonts/MikesFont.eot?#iefix') format('embedded-opentype'), | |
url('./fonts/MikesFont.woff') format('woff'), | |
url('./fonts/MikesFont.woff2') format('woff2'); | |
font-weight: 300; | |
} | |
@font-face { | |
font-family: 'MikesFont'; | |
src: url('./fonts/MikesFontBold.eot'); | |
src: url('./fonts/MikesFontBold.eot?#iefix') format('embedded-opentype'), | |
url('./fonts/MikesFontBold.woff') format('woff'), | |
url('./fonts/MikesFontBold.woff2') format('woff2'); | |
font-weight: 500; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment