Skip to content

Commit

Permalink
Merge pull request #125 from elong0527/font-html
Browse files Browse the repository at this point in the history
Use Invention font for HTML output
  • Loading branch information
elong0527 authored Apr 2, 2024
2 parents 9369d2b + ca71dce commit 6a519ab
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ bibliography: references.bib
format:
html:
theme: [cosmo, custom.scss]
mainfont: "Invention, system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Noto Sans, Liberation Sans, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"
pdf:
documentclass: scrbook
# Fixes 'Undefined control sequence \cellcolor' error
Expand Down
16 changes: 16 additions & 0 deletions custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ $primary: #00857C !default;

/*-- scss:rules --*/

@font-face {
font-display: swap;
font-family: "Invention";
src: url("fonts/InventionVF_W_Wght.woff2") format("woff2");
font-weight: 300 700;
font-style: normal;
}

@font-face {
font-display: swap;
font-family: "Invention";
src: url("fonts/InventionVF_Italics_W_Wght.woff2") format("woff2");
font-weight: 300 700;
font-style: italic;
}

img.quarto-cover-image {
box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}
Expand Down
Binary file added fonts/InventionVF_Italics_W_Wght.woff2
Binary file not shown.
Binary file added fonts/InventionVF_W_Wght.woff2
Binary file not shown.
6 changes: 6 additions & 0 deletions index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ clinical reporting toolkit.

## Events {.unnumbered}

```{css, echo=FALSE}
.table {
font-size: 0.825rem;
}
```

```{r, echo=FALSE}
knitr::kable(
read.table("events.tsv",
Expand Down

0 comments on commit 6a519ab

Please sign in to comment.