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 %
% ---------------------------------------------------------------------------- %
\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}{!}{

View File

@ -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}