Skip to content

Instantly share code, notes, and snippets.

@aminophen
Created March 28, 2015 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aminophen/6d83dc55870c8bdcc4ee to your computer and use it in GitHub Desktop.
Save aminophen/6d83dc55870c8bdcc4ee to your computer and use it in GitHub Desktop.
さまざまなフォントの「文字のおもさ」を解析するための準備
%#!xelatex
\documentclass{article}
\pagestyle{empty}
\usepackage{fontspec}
\usepackage{tikz}
\definecolor{gray1}{gray}{0.99}
\newcommand{\BigA}{\fontsize{100pt}{100pt}\selectfont}
\newcommand{\setoutputa}[1]{\newfontfamily\fontname{#1}%
\begin{tikzpicture}[x=1pt, y=1pt]
\draw [color=gray1] (0,0) rectangle (100,100);
\node (T) at (50,50) {{\BigA \fontname あ}};
\end{tikzpicture}%
% {\fontname #1}%
\newpage%
}
\begin{document}
\setoutputa{ヒラギノ明朝 ProN W3}
\setoutputa{小塚明朝 Pr6N R}
\setoutputa{IPA明朝}
\setoutputa{MS 明朝}
\setoutputa{さざなみ明朝}
\setoutputa{梅明朝}
\setoutputa{花園明朝A}
\setoutputa{さわらび明朝}
\setoutputa{ヒラギノ角ゴ ProN W3}
\setoutputa{小塚ゴシック Pr6N R}
\setoutputa{IPAゴシック}
\setoutputa{MS ゴシック}
\setoutputa{さざなみゴシック}
\setoutputa{梅ゴシック}
\setoutputa{M+ 1p regular}
\setoutputa{さわらびゴシック}
\setoutputa{小夏}
\setoutputa{メイリオ}
\setoutputa{源ノ角ゴシック Regular}
\end{document}
@aminophen
Copy link
Author

単位展に行ってきた」参照。XeLaTeX ソース中に列挙されているフォントを入手するか、あるいは入手不能な場合はコメントアウトしてタイプセットする。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment