Skip to content

Commit

Permalink
Added JuliaMono as the monospace font (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinkya-k authored Jan 6, 2025
1 parent 57a0584 commit 293f420
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 1 deletion.
2 changes: 2 additions & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
project:
type: book
output-dir: docs
resources:
- "/fonts/*"

book:
title: "Embrace Uncertainty"
Expand Down
39 changes: 39 additions & 0 deletions fonts/juliamono.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/* Inspired by: https://github.com/fonsp/Pluto.jl/tree/main/frontend/fonts/juliamono.css */
/* Some interesting notes here too: https://www.456bereastreet.com/archive/201012/font-face_tip_define_font-weight_and_font-style_to_keep_your_css_simple/ */
@font-face {
font-family: JuliaMono;
src: url("https://cdn.jsdelivr.net/gh/cormullion/juliamono-webfonts/JuliaMono-RegularLatin.woff2") format("woff2");
font-display: swap;
font-weight: 400;
unicode-range: U+00-7F; /* Basic Latin characters */
}

@font-face {
font-family: JuliaMono;
src: url("https://cdn.jsdelivr.net/gh/cormullion/juliamono-webfonts/JuliaMono-BoldLatin.woff2") format("woff2");
font-display: swap;
font-weight: 700;
unicode-range: U+00-7F; /* Basic Latin characters */
}

@font-face {
font-family: JuliaMono;
src: url("https://cdn.jsdelivr.net/gh/cormullion/juliamono-webfonts/JuliaMono-Regular.woff2") format("woff2");
font-display: swap;
font-weight: 400;
}

@font-face {
font-family: JuliaMono;
src: url("https://cdn.jsdelivr.net/gh/cormullion/juliamono-webfonts/JuliaMono-Bold.woff2") format("woff2");
font-display: swap;
font-weight: 700;
}

@font-face {
font-family: JuliaMono;
src: url("https://cdn.jsdelivr.net/gh/cormullion/juliamono-webfonts/JuliaMono-RegularItalic.woff2") format("woff2");
font-display: swap;
font-weight: 400;
font-style: italic;
}
2 changes: 1 addition & 1 deletion optsums/elm01.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"initial":[1.0,1.0],"finitial":2.6445865867858897e6,"ftol_rel":1.0e-12,"ftol_abs":1.0e-8,"xtol_rel":0.0,"xtol_abs":[1.0e-10,1.0e-10],"initial_step":[0.75,0.75],"maxfeval":-1,"maxtime":-1.0,"feval":53,"final":[0.3133412495437518,0.6744720979169204],"fmin":2.547456524730109e6,"optimizer":"LN_BOBYQA","returnvalue":"FTOL_REACHED","nAGQ":1,"REML":false,"sigma":null,"fitlog":[[[1.0,1.0],2.6445865867858897e6]]}
{"initial":[1.0,1.0],"finitial":2.6445865867857975e6,"ftol_rel":1.0e-12,"ftol_abs":1.0e-8,"xtol_rel":0.0,"xtol_abs":[1.0e-10,1.0e-10],"initial_step":[0.75,0.75],"maxfeval":-1,"maxtime":-1.0,"feval":53,"final":[0.3133412518790934,0.6744720195150588],"fmin":2.5474565247298465e6,"optimizer":"LN_BOBYQA","returnvalue":"FTOL_REACHED","xtol_zero_abs":0.001,"ftol_zero_abs":1.0e-5,"fitlog":[[[1.0,1.0],2.6445865867857975e6]],"nAGQ":1,"REML":false,"sigma":null}
11 changes: 11 additions & 0 deletions theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,16 @@
https://quarto.org/docs/output-formats/html-themes.html#sass-variables
*/
/*-- scss:defaults --*/
@import '../../fonts/juliamono.css';

$code-block-bg: #f8f5f0;
$code-bg: #f8f5f0;

$font-family-monospace: JuliaMono, Menlo, "Roboto Mono", "Lucida Sans Typewriter", "Source Code Pro", monospace;

pre {
line-height: normal;
code {
line-height: normal;
}
}

0 comments on commit 293f420

Please sign in to comment.