From 076afdd74ec4a34a7a116276a6bd9f1e73359456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Faria?= Date: Mon, 7 Apr 2025 14:14:51 +0200 Subject: [PATCH] parametrize header-font for coverletters (#114) Co-authored-by: jncfa --- lib.typ | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib.typ b/lib.typ index 2f938dc..b0a610a 100644 --- a/lib.typ +++ b/lib.typ @@ -590,6 +590,7 @@ /// - accent-color (color): The accent color of the cover letter /// - language (string): The language of the cover letter, defaults to "en". See lang.toml for available languages /// - font (array): The font families of the cover letter +/// - header-font (array): The font families of the cover letter header /// - show-footer (boolean): Whether to show the footer or not /// - closing (content): The closing of the cover letter. This defaults to "Attached Curriculum Vitae". You can set this to `none` to show the default closing or remove it completely. /// - use-smallcaps (boolean): Whether to use small caps formatting throughout the template @@ -601,6 +602,7 @@ accent-color: default-accent-color, language: "en", font: ("Source Sans Pro", "Source Sans 3"), + header-font: ("Roboto"), show-footer: true, closing: none, paper-size: "a4", @@ -685,7 +687,7 @@ #set text( size: 32pt, style: "normal", - font: ("Roboto"), + font: header-font, ) #if language == "zh" or language == "ja" [ #text(