Skip to content

Commit

Permalink
Use relative, local URLs for fonts. (#364)
Browse files Browse the repository at this point in the history
* Use relative, local URLs for fonts.

Partially addresses issue #360.
  • Loading branch information
lechten authored Jun 6, 2020
1 parent 90c1fbd commit e80ee6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions dist/codemirror.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@font-face {
font-family: 'FiraCode';
src: url('https://viebel.github.io/klipse/fonts/FiraCode/woff2/FiraCode-Regular.woff2') format('webfont.woff2') , /* Super Modern Browsers */
url('https://viebel.github.io/klipse/fonts/FiraCode/woff/FiraCode-Regular.woff') format('woff'), /* Pretty Modern Browsers */
url('https://viebel.github.io/klipse/fonts/FiraCode/ttf/FiraCode-Regular.ttf') format('truetype') /* Safari, Android, iOS */;
src: url('FiraCode/woff2/FiraCode-Regular.woff2') format('webfont.woff2') , /* Super Modern Browsers */
url('FiraCode/woff/FiraCode-Regular.woff') format('woff'), /* Pretty Modern Browsers */
url('FiraCode/ttf/FiraCode-Regular.ttf') format('truetype') /* Safari, Android, iOS */;
}

/* BASICS */
Expand Down
3 changes: 2 additions & 1 deletion scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ cp resources/public/plugin_prod/public/cljs-out/plugin_prod-main.js resources/pu
./scripts/add_license resources/public/plugin_prod/js/klipse_plugin.min.js
./scripts/add_license resources/public/plugin/js/klipse_plugin.js

cp resources/public/css/codemirror.css resources/public/plugin/js/klipse_plugin.js resources/public/plugin_prod/js/klipse_plugin.min.js dist/
cp resources/public/plugin/js/klipse_plugin.js resources/public/plugin_prod/js/klipse_plugin.min.js dist/
sed 's#https://viebel.github.io/klipse/fonts/##g' resources/public/css/codemirror.css > dist/codemirror.css

0 comments on commit e80ee6a

Please sign in to comment.