main.typ: change fonts

Math is now default, rest is IBM Plex Sans
This commit is contained in:
dogeystamp 2023-06-19 20:40:36 -04:00
parent 9ac2c9a645
commit 73ab4702e6
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
2 changed files with 5 additions and 9 deletions

View File

@ -40,10 +40,7 @@ Example usage (this is test.typ in the above tree:)
#source_code("test")
```
Need fonts:
- Fira Math
- JetBrains Mono
- Roboto
Fonts should be included in Typst itself.
Some settings are available in `main.typ`.

View File

@ -8,10 +8,9 @@
#let me = "dogeystamp"
#let font = "Roboto"
#let heading_font = "Roboto"
#let math_font = "Fira Math"
#let mono_font = "JetBrains Mono"
#let font = "IBM Plex Sans"
#let heading_font = "IBM Plex Sans"
#let mono_font = "DejaVu Sans Mono"
#let gen_title(
title: none,
@ -56,7 +55,7 @@
) = {
set text(size: normal-size, font: font, weight: "light")
show link: body => text(fill: rgb("#777777"), weight: "bold", body)
show math.equation: eq => text(font: math_font, eq)
show math.equation: eq => eq
set table(inset: 10pt)
show heading: set text(font: heading_font, weight: "black")
show raw.where(block: true): txt => pad(