This command converts a font file to woff format and selects a basic Latin subset.
pyftsubset Oswald-VariableFont_wght.ttf \
--output-file=oswald.woff2 \
--flavor=woff2 \
--unicodes="U+0020-007F" \
--layout-features='*'Read more in the docs.