feat: support specifying custom font

This commit is contained in:
2026-09-03 13:27:08 +03:00
parent 2b0406163e
commit 22c9e7df8e
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -201,4 +201,4 @@
#h(58%) _Patvirtinta elektroniniu būdu_ #h(58%) _Patvirtinta elektroniniu būdu_
] ]
} }
+4 -4
View File
@@ -361,7 +361,7 @@
body body
} }
#let __page_rules(body) = { #let __page_rules(font: "Times New Roman", body) = {
// Page size and margins // Page size and margins
set page( set page(
paper: "a4", paper: "a4",
@@ -390,7 +390,7 @@
// Set text font // Set text font
set text( set text(
font: "Times New Roman", font: font,
size: 12pt, size: 12pt,
lang: "lt", lang: "lt",
// Change where the bounding box is drawn for the text // Change where the bounding box is drawn for the text
@@ -411,8 +411,8 @@
body body
} }
#let setup-page(body) = { #let setup-page(font: "Times New Roman", body) = {
show: __page_rules.with() show: __page_rules.with(font: font)
// Pagal formaliuosius rašto darbų reikalavimus // Pagal formaliuosius rašto darbų reikalavimus