diff options
Diffstat (limited to 'graphics/pgf/contrib/pgf-periodictable/manualfiles/pgfPT_zh_fonts.tex')
-rw-r--r-- | graphics/pgf/contrib/pgf-periodictable/manualfiles/pgfPT_zh_fonts.tex | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/graphics/pgf/contrib/pgf-periodictable/manualfiles/pgfPT_zh_fonts.tex b/graphics/pgf/contrib/pgf-periodictable/manualfiles/pgfPT_zh_fonts.tex new file mode 100644 index 0000000000..896f22bb61 --- /dev/null +++ b/graphics/pgf/contrib/pgf-periodictable/manualfiles/pgfPT_zh_fonts.tex @@ -0,0 +1,105 @@ +% !TeX TS-program = XeLaTeX + +\documentclass{article} + +\usepackage{fontspec}[2020/02/03] +\setmainfont{Verdana} +\usepackage{tikz} + +\usepackage[active,tightpage]{preview} +\PreviewEnvironment{tikzpicture} +\setlength\PreviewBorder{0pt}% + +\newcount\nl\nl=1\relax% line number +\newcount\nc\nc=0\relax% column number +\newdimen\wdc\wdc=75pt\relax% column width + +% TeX Live 2024 Fonts: +% FandolSong,FandolFang,FandolHei,FandolKai,AR PL SungtiL GB,AR PL KaitiM GB (collection-langcjk + collection-langchinese) +% Microsoft Fonts: +% Win10 & 11: SimSun & SimSun-ExtB +% Win10 & 11: Microsoft YaHei & Microsoft YaHei UI +% Win10 & 11: Microsoft JhengHei & Microsoft JhengHei UI + +% Testing the Fonts: +\def\pgfPTzhTF#1{\begingroup\setmainfont{\typeface}#1\endgroup} + +\begin{document} +\begin{tikzpicture}[every node/.style={below right,text depth=0pt}] +\node[minimum height=14pt,text width=100pt,align=center,inner sep=0pt,draw] +at (0,0) {\bfseries ELEMENT}; +\foreach \element in {hydrogen,\ldots,lawrencium,% +rutherfordium,dubnium,seaborgium,bohrium,hassium,meitnerium,darmstadtium,% +roentgenium,copernicium,nihonium,flerovium,livermorium,tennessine,oganesson% +}% +{% +\node[minimum height=14pt,text width=100pt,align=center,inner sep=0pt,draw] +at (0,-14pt*\nl) {\element}; +\global\advance\nl by1\relax% +}% +% ------------- BabelStoneHan Font --------------------------------------------------------- +\node[minimum height=14pt,text width=\wdc,align=center,inner sep=0pt,fill=green!5] +at (100pt,14pt) {\itshape\resizebox{.9\wdc}{\height}{BabelStone Fonts}};% +\foreach \typeface in {BabelStone Han} +{ +\global\nl=1\relax% +\node[minimum height=14pt,text width=\wdc,align=center,inner sep=0pt,draw] +at (100pt+\wdc*\nc,0) {\bfseries\resizebox{.9\wdc}{\height}{\typeface}}; + \foreach \zhElement in {氢,\ldots,铹,𬬻,𬭊,𬭳,𬭛,𬭶,鿏,𫟼,𬬭,鿔,鿭,𫓧,𫟷,鿬,鿫}{ + \node[minimum height=14pt,text width=\wdc,align=center,inner sep=0pt,draw,fill=green!5] + at (100pt+\wdc*\nc,-14pt*\nl) {\pgfPTzhTF{\zhElement}}; + \global\advance\nl by1\relax% + } +\global\advance\nc by1\relax% +} +% ------------- Win Fonts ------------------------------------------------------------------- +\node[minimum height=14pt,text width=5*\wdc,align=center,inner sep=0pt,fill=orange!10] +at (100pt+\wdc,14pt) {\itshape Windows 10 \& Windows 11 Fonts};% +\foreach \typeface in {SimSun,SimSun-ExtB,Microsoft YaHei,Microsoft JhengHei,MingLiU-ExtB} +{ +\global\nl=1\relax% +\node[minimum height=14pt,text width=\wdc,align=center,inner sep=0pt,draw] +at (100pt+\wdc*\nc,0) {\bfseries\setbox0=\hbox{\typeface}% + \ifdim\wd0>.9\wdc\relax\resizebox{.9\wdc}{\height}{\typeface}\else% + \typeface\fi}; + \foreach \zhElement in {氢,\ldots,铹,𬬻,𬭊,𬭳,𬭛,𬭶,鿏,𫟼,𬬭,鿔,鿭,𫓧,𫟷,鿬,鿫}{ + \node[minimum height=14pt,text width=\wdc,align=center,inner sep=0pt,draw] + at (100pt+\wdc*\nc,-14pt*\nl) {\pgfPTzhTF{\zhElement}}; + \global\advance\nl by1\relax% + } +\global\advance\nc by1\relax% +} +% ------------- «newline» ------------------------------------------- +\node[minimum height=14pt,text width=100pt,align=center,inner sep=0pt,draw] +at (0,-266pt) {\bfseries ELEMENT}; +\global\advance\nl by2\relax% +\global\nc=0\relax% +\foreach \element in {hydrogen,\ldots,lawrencium,% +rutherfordium,dubnium,seaborgium,bohrium,hassium,meitnerium,darmstadtium,% +roentgenium,copernicium,nihonium,flerovium,livermorium,tennessine,oganesson% +}% +{% +\node[minimum height=14pt,text width=100pt,align=center,inner sep=0pt,draw] +at (0,-14pt*\nl) {\element}; +\global\advance\nl by1\relax% +}% +% ------------- TeX Live 2024 Fonts -------------------------------- +\node[minimum height=14pt,text width=6*\wdc,align=center,inner sep=0pt,fill=red!10] +at (100pt,-252pt) {\itshape TeX Live 2024 Fonts};% +\foreach \typeface in {FandolSong,FandolFang,FandolHei,FandolKai,AR PL SungtiL GB,AR PL KaitiM GB} +{ +\global\nl=1\relax% +\node[minimum height=14pt,text width=\wdc,align=center,inner sep=0pt,draw] +at (100pt+\wdc*\nc,-266pt) {\bfseries\setbox0=\hbox{\typeface}% + \ifdim\wd0>.9\wdc\relax\resizebox{.9\wdc}{\height}{\typeface}\else% + \typeface\fi}; + \foreach \zhElement in {氢,\ldots,铹,𬬻,𬭊,𬭳,𬭛,𬭶,鿏,𫟼,𬬭,鿔,鿭,𫓧,𫟷,鿬,鿫}{ + \node[minimum height=14pt,text width=\wdc,align=center,inner sep=0pt,draw] + at (100pt+\wdc*\nc,-266pt-14pt*\nl) {\pgfPTzhTF{\zhElement}}; + \global\advance\nl by1\relax% + } +\global\advance\nc by1\relax% +} + +\end{tikzpicture} +\end{document} |