Add fonts

This commit is contained in:
Oystein Kristoffer Tveit 2020-05-26 23:05:15 +02:00
parent df9a4d5138
commit 385787e226
4 changed files with 10 additions and 4 deletions

BIN
font/Choumei.ttf Normal file

Binary file not shown.

BIN
font/KanjiStrokeOrders.ttf Normal file

Binary file not shown.

View File

@ -84,7 +84,7 @@
% Meaning % % Meaning %
% ---------------------------------------------------------------------------- % % ---------------------------------------------------------------------------- %
\newtcolorbox{meaningBox}{ \newtcolorbox{meaningBox}{ %TODO: Make the box autoshrink horizontally while still making newlines when it's full.
enhanced, enhanced,
colback=black!20, colback=black!20,
left=15pt, left=15pt,
@ -155,8 +155,14 @@
% Kanji Drawing Box % % Kanji Drawing Box %
% ---------------------------------------------------------------------------- % % ---------------------------------------------------------------------------- %
\newCJKfontfamily\drawingKanji{Choumei} \newCJKfontfamily\drawingKanji[
\newCJKfontfamily\drawingFirstKanji{KanjiStrokeOrders} Path = {./font/},
Extension = .ttf,
]{Choumei}
\newCJKfontfamily\drawingFirstKanji[
Path = {./font/},
Extension = .ttf,
]{KanjiStrokeOrders}
\newcommand{\kanjiRow}[1]{ \newcommand{\kanjiRow}[1]{
\resizebox{\textwidth}{!}{ \resizebox{\textwidth}{!}{

View File

@ -26,7 +26,7 @@
\usepackage[japanese]{babel} \usepackage[japanese]{babel}
\usepackage{xeCJK} \usepackage{xeCJK}
\usepackage{fontspec} \usepackage{fontspec}
\setCJKmainfont{Noto Sans Mono CJK JP} \setCJKmainfont{Noto Sans Mono CJK JP} %TODO Add fonts to repo
\setmainfont{Open Sans} \setmainfont{Open Sans}
\input{./kanjiLib.tex} \input{./kanjiLib.tex}