mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
style: Format code with consistent spacing and line breaks
This commit is contained in:
parent
1b0ba71ef0
commit
9cf194b52b
1 changed files with 13 additions and 14 deletions
|
@ -9,6 +9,7 @@ import argparse
|
|||
import base64
|
||||
import os
|
||||
import tempfile
|
||||
|
||||
from fontTools.subset import main as subset_main
|
||||
from fontTools.ttLib import TTFont
|
||||
|
||||
|
@ -138,9 +139,7 @@ def main():
|
|||
help="Path to save the SVG file",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--verbose",
|
||||
action="store_true",
|
||||
help="Print additional information about font subsetting"
|
||||
"--verbose", action="store_true", help="Print additional information about font subsetting"
|
||||
)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
@ -167,7 +166,7 @@ def main():
|
|||
if args.verbose and args.output:
|
||||
# Calculate size savings
|
||||
original_size = os.path.getsize(args.font)
|
||||
output_size = len(svg.encode('utf-8'))
|
||||
output_size = len(svg.encode("utf-8"))
|
||||
print(f"Original font size: {original_size/1024:.2f} KB")
|
||||
print(f"Output SVG size: {output_size/1024:.2f} KB")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue