[subset] Fix extension of subset font (again)

Fixes https://github.com/fonttools/fonttools/issues/1298#issuecomment-1768849326
This commit is contained in:
Behdad Esfahbod 2023-10-18 10:11:51 -06:00
parent 1d0a180b9d
commit 31c531dd04

View File

@ -3666,7 +3666,10 @@ def main(args=None):
)
if outfile is None:
outfile = makeOutputFileName(fontfile, overWrite=True, suffix=".subset")
ext = "." + options.flavor.lower() if options.flavor is not None else None
outfile = makeOutputFileName(
fontfile, extension=ext, overWrite=True, suffix=".subset"
)
with timer("compile glyph list"):
if wildcard_glyphs: