Skip to content

Instantly share code, notes, and snippets.

@qtnez
Created October 30, 2022 05:49
Show Gist options
  • Save qtnez/83ec85e7d41ce9e4cb6d4140584d442f to your computer and use it in GitHub Desktop.
Save qtnez/83ec85e7d41ce9e4cb6d4140584d442f to your computer and use it in GitHub Desktop.
\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}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment