Skip to content

Instantly share code, notes, and snippets.

@hiterm
Last active May 27, 2017 14:18
Show Gist options
  • Save hiterm/98a89bc12e82642ebebf652c1e10a388 to your computer and use it in GitHub Desktop.
Save hiterm/98a89bc12e82642ebebf652c1e10a388 to your computer and use it in GitHub Desktop.
源ノ明朝と源ノ角ゴシックをluaLaTeXで使う
\documentclass{ltjsarticle}
\usepackage[no-math]{luatexja-fontspec}
\setmainjfont[BoldFont=Source Han Serif Bold]{Source Han Serif}
\setsansjfont[BoldFont=Source Han Sans Bold]{Source Han Sans}
%\setmainjfont[BoldFont=file:SourceHanSerif-Bold.ttc(0)]{file:SourceHanSerif-Regular.ttc(0)}
%\setsansjfont[BoldFont=file:SourceHanSans-Bold.ttc(0)]{SourceHanSans-Regular.ttc(0)}
\begin{document}
あいうえお直雲辞間
明朝\textbf{明朝ボールド}\textgt{ゴシック}\textbf{\textgt{ボールドゴシック}}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment