Skip to content

Instantly share code, notes, and snippets.

@michaelbourne
Last active February 25, 2019 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelbourne/f941c4bb857c68ab3f4f38ee88f12ba8 to your computer and use it in GitHub Desktop.
Save michaelbourne/f941c4bb857c68ab3f4f38ee88f12ba8 to your computer and use it in GitHub Desktop.
Add custom font families to the Pro font manager
(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()})();
@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