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

Variable Font 試玩

qtnez

joined: 2016-10-14
posted: 84
promoted:
bookmarked:
台灣‧屏東
1subject: 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 尚不支援。

-- 
Do not feed the troll, please.

edited: 4
eliu

joined: 2007-08-09
posted: 11473
promoted: 617
bookmarked: 187
新竹, 台灣
2subject: Promote 0 Bookmark 02023-03-08quote  

好久不見 Laughing

qtnez

joined: 2016-10-14
posted: 84
promoted:
bookmarked:
台灣‧屏東
3subject: Promote 0 Bookmark 02023-03-09quote  

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

-- 
Do not feed the troll, please.

eliu

joined: 2007-08-09
posted: 11473
promoted: 617
bookmarked: 187
新竹, 台灣
4subject: Promote 0 Bookmark 02023-03-09quote  

qtnez

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

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

晚上刷牙前要用牙線。

edited: 1
qtnez

joined: 2016-10-14
posted: 84
promoted:
bookmarked:
台灣‧屏東
5subject: Promote 0 Bookmark 02023-03-10quote  

Thanks, 來試試看!

-- 
Do not feed the troll, please.

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