Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
Use open source fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
cu1ch3n committed Apr 3, 2024
1 parent 2d55181 commit d2dfd7f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Binary file added fonts/LXGWWenKai-Light.ttf
Binary file not shown.
Binary file removed fonts/STKAITI.TTF
Binary file not shown.
Binary file added fonts/YsabeauInfant-LightItalic.ttf
Binary file not shown.
10 changes: 6 additions & 4 deletions lib/caidan.typ
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
#import "nord.typ": *

#let en_text(size, body, fill: nord3, style: "italic") = text(
font: "Libre Baskerville",
font: "Ysabeau Infant",
size: size,
style: style,
fill: fill,
weight: "light",
)[#body]

#let zh_text(size, body, fill: nord0) = text(
font: "STKaiti",
font: "LXGW Wenkai",
size: size,
fill: fill,
weight: "light",
)[#body]

#let cuisine(name_zh, name_en) = align(center)[
#v(.5em)
#zh_text(16pt)[#name_zh] \ #en_text(10pt)[#name_en]
#v(.2em)
#v(.3em)
]

#let item_counter = counter("item")
Expand All @@ -27,7 +29,7 @@
#name_zh #h(1fr)
// #emoji
] \
#v(-.7em)#h(.14em)#en_text(10pt)[#name_en]
#v(-.7em)#h(.14em)#en_text(10pt)[#name_en]#v(.3em)
]

#let caidan(
Expand Down

0 comments on commit d2dfd7f

Please sign in to comment.