📝 docs: include layout features in font subset

This commit is contained in:
welpo 2023-05-22 19:42:04 +02:00
parent fa9229377d
commit 44980f1418
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
3 changed files with 5 additions and 5 deletions

View file

@ -128,7 +128,7 @@ temp_subset=$(mktemp)
# Run the pyftsubset command with the filtered characters as --text argument.
pyftsubset "$font_file" \
--text="$unique_chars" \
--layout-features="" --flavor="woff2" --output-file="$temp_subset" --with-zopfli
--layout-features="*" --flavor="woff2" --output-file="$temp_subset" --with-zopfli
# Base64 encode the temporary subset.woff2 file and create the CSS file.
base64_encoded_font=$(base64 -i "$temp_subset")