From 22c9e7df8e912a6aa75606344fa1f968486eb483 Mon Sep 17 00:00:00 2001 From: JustAnyone Date: Thu, 3 Sep 2026 13:27:08 +0300 Subject: [PATCH] feat: support specifying custom font --- src/fragments.typ | 2 +- src/lib.typ | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/fragments.typ b/src/fragments.typ index 3d8d4a6..bd10f9c 100644 --- a/src/fragments.typ +++ b/src/fragments.typ @@ -201,4 +201,4 @@ #h(58%) _Patvirtinta elektroniniu būdu_ ] -} \ No newline at end of file +} diff --git a/src/lib.typ b/src/lib.typ index 1e17f37..79e8b83 100644 --- a/src/lib.typ +++ b/src/lib.typ @@ -361,7 +361,7 @@ body } -#let __page_rules(body) = { +#let __page_rules(font: "Times New Roman", body) = { // Page size and margins set page( paper: "a4", @@ -390,7 +390,7 @@ // Set text font set text( - font: "Times New Roman", + font: font, size: 12pt, lang: "lt", // Change where the bounding box is drawn for the text @@ -411,8 +411,8 @@ body } -#let setup-page(body) = { - show: __page_rules.with() +#let setup-page(font: "Times New Roman", body) = { + show: __page_rules.with(font: font) // Pagal formaliuosius rašto darbų reikalavimus