mirror of
https://github.com/nicoverbruggen/kobo-font-fix.git
synced 2026-03-30 05:50:09 +02:00
Remove backup
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user