Remove backup

This commit is contained in:
2025-08-21 14:26:10 +02:00
parent 78b6132f9a
commit 8b1d345b60

View File

@@ -27,7 +27,7 @@ from fontTools.ttLib import TTFont, newTable
from fontTools.ttLib.tables._k_e_r_n import KernTable_format_0 from fontTools.ttLib.tables._k_e_r_n import KernTable_format_0
# Constants # Constants
DEFAULT_PREFIX = "KoFi" DEFAULT_PREFIX = "KF"
DEFAULT_LINE_PERCENT = 20 DEFAULT_LINE_PERCENT = 20
VALID_SUFFIXES = ("-Regular", "-Bold", "-Italic", "-BoldItalic") VALID_SUFFIXES = ("-Regular", "-Bold", "-Italic", "-BoldItalic")
SUPPORTED_EXTENSIONS = (".ttf", ".otf") SUPPORTED_EXTENSIONS = (".ttf", ".otf")
@@ -566,11 +566,6 @@ Examples:
default=DEFAULT_LINE_PERCENT, default=DEFAULT_LINE_PERCENT,
help=f"Line spacing adjustment percentage (default: {DEFAULT_LINE_PERCENT})" help=f"Line spacing adjustment percentage (default: {DEFAULT_LINE_PERCENT})"
) )
parser.add_argument(
"--no-backup",
action="store_true",
help="Don't create backup files before processing"
)
parser.add_argument( parser.add_argument(
"--verbose", "--verbose",
action="store_true", action="store_true",
@@ -614,7 +609,6 @@ Examples:
if processor.process_font( if processor.process_font(
font_path, font_path,
args.name, args.name,
backup=not args.no_backup
): ):
success_count += 1 success_count += 1