diff --git a/font/Choumei.ttf b/font/Choumei.ttf new file mode 100644 index 0000000..4b46cd2 Binary files /dev/null and b/font/Choumei.ttf differ diff --git a/font/KanjiStrokeOrders.ttf b/font/KanjiStrokeOrders.ttf new file mode 100644 index 0000000..a80e2e5 Binary files /dev/null and b/font/KanjiStrokeOrders.ttf differ diff --git a/kanjiLib.tex b/kanjiLib.tex index 464d10d..b6b27e2 100644 --- a/kanjiLib.tex +++ b/kanjiLib.tex @@ -84,7 +84,7 @@ % Meaning % % ---------------------------------------------------------------------------- % -\newtcolorbox{meaningBox}{ +\newtcolorbox{meaningBox}{ %TODO: Make the box autoshrink horizontally while still making newlines when it's full. enhanced, colback=black!20, left=15pt, @@ -155,8 +155,14 @@ % Kanji Drawing Box % % ---------------------------------------------------------------------------- % -\newCJKfontfamily\drawingKanji{Choumei} -\newCJKfontfamily\drawingFirstKanji{KanjiStrokeOrders} +\newCJKfontfamily\drawingKanji[ + Path = {./font/}, + Extension = .ttf, +]{Choumei} +\newCJKfontfamily\drawingFirstKanji[ + Path = {./font/}, + Extension = .ttf, +]{KanjiStrokeOrders} \newcommand{\kanjiRow}[1]{ \resizebox{\textwidth}{!}{ diff --git a/main.tex b/main.tex index f7e924e..cff6497 100644 --- a/main.tex +++ b/main.tex @@ -26,7 +26,7 @@ \usepackage[japanese]{babel} \usepackage{xeCJK} \usepackage{fontspec} -\setCJKmainfont{Noto Sans Mono CJK JP} +\setCJKmainfont{Noto Sans Mono CJK JP} %TODO Add fonts to repo \setmainfont{Open Sans} \input{./kanjiLib.tex}