Add fonts
This commit is contained in:
parent
df9a4d5138
commit
385787e226
Binary file not shown.
Binary file not shown.
12
kanjiLib.tex
12
kanjiLib.tex
|
@ -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}{!}{
|
||||||
|
|
2
main.tex
2
main.tex
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue