From 1c5a10df91428f9411d6f9ee95f575cb543f9cd4 Mon Sep 17 00:00:00 2001 From: matcap Date: Wed, 11 Dec 2024 23:54:49 +0100 Subject: [PATCH 1/2] use provided font for header name --- lib.typ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.typ b/lib.typ index e6a8fe5..5fdfc30 100644 --- a/lib.typ +++ b/lib.typ @@ -286,7 +286,7 @@ #set text( size: 32pt, style: "normal", - font: ("Roboto"), + font: font, ) #if language == "zh" or language == "ja" [ #text( From 815a0efb8f069bf09d6eda5f96493b8146b3d87b Mon Sep 17 00:00:00 2001 From: matcap Date: Thu, 12 Dec 2024 20:04:20 +0100 Subject: [PATCH 2/2] add `header-font` argument --- lib.typ | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib.typ b/lib.typ index 5fdfc30..f57a393 100644 --- a/lib.typ +++ b/lib.typ @@ -198,6 +198,7 @@ show-footer: true, language: "en", font: ("Source Sans Pro", "Source Sans 3"), + header-font: ("Roboto"), body, ) = { if type(accent-color) == "string" { @@ -286,7 +287,7 @@ #set text( size: 32pt, style: "normal", - font: font, + font: header-font, ) #if language == "zh" or language == "ja" [ #text(