cht電腦資訊文書排版TeX
adm Find login register

Variable Font 試玩

qtnez
1 Variable Font 試玩
Promote 0 Bookmark 02023-02-07quote  

https://gist.github.com/qtnez/83ec85e7d41ce9e4cb6d4140584d442f

\documentclass{article}
 
\usepackage{fontspec}
 
\setmainfont{SourceSerif4Variable-Roman.otf}
 
\begin{document}
 
\addfontfeatures{RawFeature={+axis={wght=100}}}
 
The quick brown fox jumps over the lazy dog. \par
 
\addfontfeatures{RawFeature={+axis={wght=300}}}
 
The quick brown fox jumps over the lazy dog.\par
 
\addfontfeatures{RawFeature={+axis={wght=300,opsz=10}}}
 
The quick brown fox jumps over the lazy dog.\par
 
\addfontfeatures{RawFeature={+axis={wght=300,opsz=24}}}
 
The quick brown fox jumps over the lazy dog.\par
 
\addfontfeatures{RawFeature={+axis={wght=600}}}
 
The quick brown fox jumps over the lazy dog.\par
 
\addfontfeatures{RawFeature={+axis={wght=900}}}
 
The quick brown fox jumps over the lazy dog.
 
\end{document}

所需字型可以在這裡下載:

https://github.com/adobe-fonts/source-serif/tree/release/VAR

 

註:中文字型目前只有商業字型才有。要用 lualatex 編譯,其他 TeX engine 尚不支援。


 --
https://t.me/TWTUG
Taiwan TeX User Group

edited: 4
eliu
2
Promote 0 Bookmark 02023-03-08quote  
qtnez
3
Promote 0 Bookmark 02023-03-09quote  

髮蒼蒼,視茫茫,齒牙搖動了!Laughing


 --
https://t.me/TWTUG
Taiwan TeX User Group

eliu
4
Promote 0 Bookmark 02023-03-09quote  

qtnez

髮蒼蒼,視茫茫,齒牙搖動了!Laughing

我每天中午用一茶匙綠茶粉加一杯水每一口先漱口然後喝下去,對牙周病、蛀牙都有效果。晚上不要喝綠茶,以免睡不著。

晚上刷牙前要用牙線。

edited: 1
qtnez
5
Promote 0 Bookmark 02023-03-10quote  

Thanks, 來試試看!


 --
https://t.me/TWTUG
Taiwan TeX User Group

cht電腦資訊文書排版TeX
adm Find login register
views:3396