Font subsetting: Preserve all OpenType features. This makes subset font files larger but ensures there is no visual degradation when using the subsetted font files.

This commit is contained in:
Kovid Goyal 2023-12-28 09:24:10 +05:30
parent a1d86860ac
commit 1ec3081828
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -15,6 +15,7 @@ def subset(input_file_object_or_path, output_file_object_or_path, container_type
log.addHandler(log_handler)
try:
s = Subsetter()
s.options.layout_features.append('*')
s.options.recommended_glyphs = True
container_type = container_type.lower()
if 'woff' in container_type: