foundrytools-cli 1.1.11__tar.gz → 1.1.12__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {foundrytools-cli-1.1.11/foundrytools_cli.egg-info → foundrytools_cli-1.1.12}/PKG-INFO +2 -2
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/CLI/ftcli_os2.py +97 -99
- foundrytools_cli-1.1.12/foundryToolsCLI/__init__.py +3 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12/foundrytools_cli.egg-info}/PKG-INFO +2 -2
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundrytools_cli.egg-info/requires.txt +1 -1
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/requirements.txt +1 -1
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/setup.py +1 -1
- foundrytools-cli-1.1.11/foundryToolsCLI/__init__.py +0 -3
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/LICENSE +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/MANIFEST.in +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/README.md +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/CLI/__init__.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/CLI/ftcli_assistant.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/CLI/ftcli_cff.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/CLI/ftcli_converter.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/CLI/ftcli_fix.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/CLI/ftcli_hhea.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/CLI/ftcli_metrics.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/CLI/ftcli_name.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/CLI/ftcli_otf.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/CLI/ftcli_post.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/CLI/ftcli_print.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/CLI/ftcli_ttf.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/CLI/ftcli_utils.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/Font.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/VFont.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/__init__.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/assistant/UI.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/assistant/__init__.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/assistant/fonts_data.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/assistant/styles_mapping.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/constants.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/converters/__init__.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/converters/options.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/converters/otf_to_ttf.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/converters/sfnt_to_web.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/converters/ttc_to_sfnt.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/converters/ttf_to_otf.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/converters/variable_to_static.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/converters/web_to_sfnt.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/printer/UI.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/printer/__init__.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/tables/CFF_.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/tables/OS_2.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/tables/__init__.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/tables/head.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/tables/hhea.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/tables/name.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/tables/post.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/utils/__init__.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/utils/bits_tools.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/utils/cli_tools.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/utils/click_tools.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/utils/logger.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/utils/otf_tools.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/utils/ps_recalc_stems.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/utils/ps_recalc_zones.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/utils/skia_tools.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/utils/text_tools.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/utils/timer.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/utils/ttf_tools.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/__main__.py +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundrytools_cli.egg-info/SOURCES.txt +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundrytools_cli.egg-info/dependency_links.txt +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundrytools_cli.egg-info/entry_points.txt +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundrytools_cli.egg-info/not-zip-safe +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundrytools_cli.egg-info/top_level.txt +0 -0
- {foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: foundrytools-cli
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.12
|
|
4
4
|
Summary: A set of command line tools to inspect, manipulate and convert font files
|
|
5
5
|
Home-page: https://github.com/ftCLI/FoundryTools-CLI
|
|
6
6
|
Author: ftCLI
|
|
@@ -11,7 +11,7 @@ Requires-Python: >=3.9
|
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
12
|
License-File: LICENSE
|
|
13
13
|
Requires-Dist: afdko>=4.0.1
|
|
14
|
-
Requires-Dist: fonttools>=4.
|
|
14
|
+
Requires-Dist: fonttools>=4.51.0
|
|
15
15
|
Requires-Dist: brotli>=1.1.0
|
|
16
16
|
Requires-Dist: click>=8.1.7
|
|
17
17
|
Requires-Dist: cffsubr>=0.3.0
|
|
@@ -591,29 +591,41 @@ def set_version(
|
|
|
591
591
|
@tbl_os2.command()
|
|
592
592
|
@add_file_or_path_argument()
|
|
593
593
|
@click.option(
|
|
594
|
-
"-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
594
|
+
"--family-type", "bFamilyType", type=click.IntRange(0, 5), help="Sets 'bFamilyType' value"
|
|
595
|
+
)
|
|
596
|
+
@click.option(
|
|
597
|
+
"--serif-style", "bSerifStyle", type=click.IntRange(0, 15), help="Sets 'bSerifStyle' value"
|
|
598
|
+
)
|
|
599
|
+
@click.option("--weight", "bWeight", type=click.IntRange(0, 11), help="Sets 'bWeight' value")
|
|
600
|
+
@click.option(
|
|
601
|
+
"--proportion", "bProportion", type=click.IntRange(0, 9), help="Sets 'bProportion' value"
|
|
602
|
+
)
|
|
603
|
+
@click.option("--contrast", "bContrast", type=click.IntRange(0, 9), help="Sets 'bContrast' value")
|
|
604
|
+
@click.option(
|
|
605
|
+
"--stroke-variation",
|
|
606
|
+
"bStrokeVariation",
|
|
607
|
+
type=click.IntRange(0, 9),
|
|
608
|
+
help="Sets 'bStrokeVariation' value",
|
|
609
|
+
)
|
|
610
|
+
@click.option("--arm-style", "bArmStyle", type=click.IntRange(0, 11), help="Sets 'bArmStyle' value")
|
|
611
|
+
@click.option(
|
|
612
|
+
"--letter-form", "bLetterForm", type=click.IntRange(0, 15), help="Sets 'bLetterForm' value"
|
|
600
613
|
)
|
|
614
|
+
@click.option("--midline", "bMidline", type=click.IntRange(0, 13), help="Sets 'bMidline' value")
|
|
615
|
+
@click.option("--x-height", "bXHeight", type=click.IntRange(0, 7), help="Sets 'bXHeight' value")
|
|
601
616
|
@add_recursive_option()
|
|
602
617
|
@add_common_options()
|
|
603
618
|
@Timer(logger=logger.info)
|
|
604
|
-
def
|
|
619
|
+
def panose(
|
|
605
620
|
input_path: Path,
|
|
606
|
-
|
|
621
|
+
recalc_timestamp,
|
|
607
622
|
recursive: bool = False,
|
|
608
623
|
output_dir: Optional[Path] = None,
|
|
609
|
-
recalc_timestamp: bool = False,
|
|
610
624
|
overwrite: bool = True,
|
|
625
|
+
**kwargs,
|
|
611
626
|
):
|
|
612
627
|
"""
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
usWeightClass indicates the visual weight (degree of blackness or thickness of strokes) of the characters in the
|
|
616
|
-
font. Values from 1 to 1000 are valid.
|
|
628
|
+
Command line panose editor.
|
|
617
629
|
"""
|
|
618
630
|
fonts = get_fonts_in_path(
|
|
619
631
|
input_path=input_path, recursive=recursive, recalc_timestamp=recalc_timestamp
|
|
@@ -621,21 +633,27 @@ def set_weight(
|
|
|
621
633
|
if not initial_check_pass(fonts=fonts, output_dir=output_dir):
|
|
622
634
|
return
|
|
623
635
|
|
|
636
|
+
params = {k: v for k, v in kwargs.items() if v is not None}
|
|
637
|
+
if len(params) == 0:
|
|
638
|
+
logger.error(Logs.no_parameter)
|
|
639
|
+
return
|
|
640
|
+
|
|
624
641
|
for font in fonts:
|
|
625
642
|
try:
|
|
626
643
|
file = Path(font.reader.file.name)
|
|
627
644
|
output_file = Path(makeOutputFileName(file, outputDir=output_dir, overWrite=overwrite))
|
|
628
|
-
|
|
645
|
+
os2_table: TableOS2 = font["OS/2"]
|
|
646
|
+
panose_src = os2_table.panose
|
|
647
|
+
panose_copy = copy(panose_src)
|
|
629
648
|
|
|
630
|
-
|
|
649
|
+
for k, v in params.items():
|
|
650
|
+
setattr(panose_src, k, v)
|
|
631
651
|
|
|
632
|
-
if
|
|
652
|
+
if panose_copy.__dict__ != panose_src.__dict__:
|
|
653
|
+
font.save(output_file)
|
|
654
|
+
logger.success(Logs.file_saved, file=output_file)
|
|
655
|
+
else:
|
|
633
656
|
logger.skip(Logs.file_not_changed, file=file)
|
|
634
|
-
continue
|
|
635
|
-
|
|
636
|
-
os_2.set_weight_class(weight)
|
|
637
|
-
font.save(output_file)
|
|
638
|
-
logger.success(Logs.file_saved, file=output_file)
|
|
639
657
|
|
|
640
658
|
except Exception as e:
|
|
641
659
|
logger.exception(e)
|
|
@@ -643,99 +661,84 @@ def set_weight(
|
|
|
643
661
|
font.close()
|
|
644
662
|
|
|
645
663
|
|
|
646
|
-
@tbl_os2.command()
|
|
664
|
+
@tbl_os2.command(no_args_is_help=True)
|
|
647
665
|
@add_file_or_path_argument()
|
|
648
666
|
@click.option(
|
|
649
|
-
"-
|
|
667
|
+
"-wght",
|
|
668
|
+
"--weight",
|
|
669
|
+
"usWeightClass",
|
|
670
|
+
type=click.IntRange(1, 1000),
|
|
671
|
+
help="Sets the ``usWeightClass`` value",
|
|
672
|
+
)
|
|
673
|
+
@click.option(
|
|
674
|
+
"-wdth",
|
|
650
675
|
"--width",
|
|
651
|
-
|
|
676
|
+
"usWidthClass",
|
|
652
677
|
type=click.IntRange(1, 9),
|
|
653
|
-
|
|
654
|
-
help="usWidthClass value.",
|
|
678
|
+
help="Sets the ``usWidthClass`` value",
|
|
655
679
|
)
|
|
656
|
-
@add_recursive_option()
|
|
657
|
-
@add_common_options()
|
|
658
|
-
@Timer(logger=logger.info)
|
|
659
|
-
def set_width(
|
|
660
|
-
input_path: Path,
|
|
661
|
-
width: int,
|
|
662
|
-
recursive: bool = False,
|
|
663
|
-
output_dir: Optional[Path] = None,
|
|
664
|
-
recalc_timestamp: bool = False,
|
|
665
|
-
overwrite: bool = True,
|
|
666
|
-
):
|
|
667
|
-
"""
|
|
668
|
-
Sets the Width class value.
|
|
669
|
-
|
|
670
|
-
usWidthClass indicates a relative change from the normal aspect ratio (width to height ratio) as specified by a font
|
|
671
|
-
designer for the glyphs in a font. Values from 1 to 9 are valid.
|
|
672
|
-
"""
|
|
673
|
-
fonts = get_fonts_in_path(
|
|
674
|
-
input_path=input_path, recursive=recursive, recalc_timestamp=recalc_timestamp
|
|
675
|
-
)
|
|
676
|
-
if not initial_check_pass(fonts=fonts, output_dir=output_dir):
|
|
677
|
-
return
|
|
678
|
-
|
|
679
|
-
for font in fonts:
|
|
680
|
-
try:
|
|
681
|
-
file = Path(font.reader.file.name)
|
|
682
|
-
output_file = Path(makeOutputFileName(file, outputDir=output_dir, overWrite=overwrite))
|
|
683
|
-
logger.opt(colors=True).info(Logs.current_file, file=file)
|
|
684
|
-
|
|
685
|
-
os_2: TableOS2 = font["OS/2"]
|
|
686
|
-
|
|
687
|
-
if width == os_2.get_width_class():
|
|
688
|
-
logger.skip(Logs.file_not_changed, file=file)
|
|
689
|
-
continue
|
|
690
|
-
|
|
691
|
-
os_2.set_width_class(width)
|
|
692
|
-
font.save(output_file)
|
|
693
|
-
logger.success(Logs.file_saved, file=output_file)
|
|
694
|
-
|
|
695
|
-
except Exception as e:
|
|
696
|
-
logger.exception(e)
|
|
697
|
-
finally:
|
|
698
|
-
font.close()
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
@tbl_os2.command()
|
|
702
|
-
@add_file_or_path_argument()
|
|
703
680
|
@click.option(
|
|
704
|
-
"
|
|
681
|
+
"-tasc",
|
|
682
|
+
"--typo-ascender",
|
|
683
|
+
"sTypoAscender",
|
|
684
|
+
type=int,
|
|
685
|
+
help="Sets the ``sTypoAscender`` value",
|
|
705
686
|
)
|
|
706
687
|
@click.option(
|
|
707
|
-
"
|
|
688
|
+
"-tdsc",
|
|
689
|
+
"--typo-descender",
|
|
690
|
+
"sTypoDescender",
|
|
691
|
+
type=int,
|
|
692
|
+
help="Sets the ``sTypoDescender`` value",
|
|
708
693
|
)
|
|
709
|
-
@click.option("--weight", "bWeight", type=click.IntRange(0, 11), help="Sets 'bWeight' value")
|
|
710
694
|
@click.option(
|
|
711
|
-
"
|
|
695
|
+
"-tlg",
|
|
696
|
+
"--typo-line-gap",
|
|
697
|
+
"sTypoLineGap",
|
|
698
|
+
type=int,
|
|
699
|
+
help="Sets the ``sTypoLineGap`` value",
|
|
712
700
|
)
|
|
713
|
-
@click.option("--contrast", "bContrast", type=click.IntRange(0, 9), help="Sets 'bContrast' value")
|
|
714
701
|
@click.option(
|
|
715
|
-
"
|
|
716
|
-
"
|
|
717
|
-
|
|
718
|
-
|
|
702
|
+
"-wasc",
|
|
703
|
+
"--win-ascent",
|
|
704
|
+
"usWinAscent",
|
|
705
|
+
type=int,
|
|
706
|
+
help="Sets the ``usWinAscent`` value",
|
|
719
707
|
)
|
|
720
|
-
@click.option("--arm-style", "bArmStyle", type=click.IntRange(0, 11), help="Sets 'bArmStyle' value")
|
|
721
708
|
@click.option(
|
|
722
|
-
"
|
|
709
|
+
"-wdsc",
|
|
710
|
+
"--win-descent",
|
|
711
|
+
"usWinDescent",
|
|
712
|
+
type=int,
|
|
713
|
+
help="Sets the ``usWinDescent`` value",
|
|
714
|
+
)
|
|
715
|
+
@click.option(
|
|
716
|
+
"-xhgt",
|
|
717
|
+
"--x-height",
|
|
718
|
+
"sxHeight",
|
|
719
|
+
type=int,
|
|
720
|
+
help="Sets the ``sxHeight`` value",
|
|
721
|
+
)
|
|
722
|
+
@click.option(
|
|
723
|
+
"-chgt",
|
|
724
|
+
"--cap-height",
|
|
725
|
+
"sCapHeight",
|
|
726
|
+
type=int,
|
|
727
|
+
help="Sets the ``sCapHeight`` value",
|
|
723
728
|
)
|
|
724
|
-
@click.option("--midline", "bMidline", type=click.IntRange(0, 13), help="Sets 'bMidline' value")
|
|
725
|
-
@click.option("--x-height", "bXHeight", type=click.IntRange(0, 7), help="Sets 'bXHeight' value")
|
|
726
729
|
@add_recursive_option()
|
|
727
730
|
@add_common_options()
|
|
728
731
|
@Timer(logger=logger.info)
|
|
729
|
-
def
|
|
732
|
+
def set_attrs(
|
|
730
733
|
input_path: Path,
|
|
731
|
-
recalc_timestamp,
|
|
734
|
+
recalc_timestamp: bool = False,
|
|
732
735
|
recursive: bool = False,
|
|
733
736
|
output_dir: Optional[Path] = None,
|
|
734
737
|
overwrite: bool = True,
|
|
735
738
|
**kwargs,
|
|
736
739
|
):
|
|
737
740
|
"""
|
|
738
|
-
Command line
|
|
741
|
+
Command line OS/2 table editor.
|
|
739
742
|
"""
|
|
740
743
|
fonts = get_fonts_in_path(
|
|
741
744
|
input_path=input_path, recursive=recursive, recalc_timestamp=recalc_timestamp
|
|
@@ -743,23 +746,18 @@ def panose(
|
|
|
743
746
|
if not initial_check_pass(fonts=fonts, output_dir=output_dir):
|
|
744
747
|
return
|
|
745
748
|
|
|
746
|
-
params = {k: v for k, v in kwargs.items() if v is not None}
|
|
747
|
-
if len(params) == 0:
|
|
748
|
-
logger.error(Logs.no_parameter)
|
|
749
|
-
return
|
|
750
|
-
|
|
751
749
|
for font in fonts:
|
|
752
750
|
try:
|
|
753
751
|
file = Path(font.reader.file.name)
|
|
754
752
|
output_file = Path(makeOutputFileName(file, outputDir=output_dir, overWrite=overwrite))
|
|
755
753
|
os2_table: TableOS2 = font["OS/2"]
|
|
756
|
-
|
|
757
|
-
panose_copy = copy(panose_src)
|
|
754
|
+
os2_copy = copy(os2_table)
|
|
758
755
|
|
|
759
|
-
for k, v in
|
|
760
|
-
|
|
756
|
+
for k, v in kwargs.items():
|
|
757
|
+
if v is not None:
|
|
758
|
+
setattr(os2_table, k, v)
|
|
761
759
|
|
|
762
|
-
if
|
|
760
|
+
if os2_copy.compile(font) != os2_table.compile(font):
|
|
763
761
|
font.save(output_file)
|
|
764
762
|
logger.success(Logs.file_saved, file=output_file)
|
|
765
763
|
else:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: foundrytools-cli
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.12
|
|
4
4
|
Summary: A set of command line tools to inspect, manipulate and convert font files
|
|
5
5
|
Home-page: https://github.com/ftCLI/FoundryTools-CLI
|
|
6
6
|
Author: ftCLI
|
|
@@ -11,7 +11,7 @@ Requires-Python: >=3.9
|
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
12
|
License-File: LICENSE
|
|
13
13
|
Requires-Dist: afdko>=4.0.1
|
|
14
|
-
Requires-Dist: fonttools>=4.
|
|
14
|
+
Requires-Dist: fonttools>=4.51.0
|
|
15
15
|
Requires-Dist: brotli>=1.1.0
|
|
16
16
|
Requires-Dist: click>=8.1.7
|
|
17
17
|
Requires-Dist: cffsubr>=0.3.0
|
|
@@ -18,7 +18,7 @@ def _get_requirements():
|
|
|
18
18
|
|
|
19
19
|
setuptools.setup(
|
|
20
20
|
name="foundrytools-cli",
|
|
21
|
-
version="1.1.
|
|
21
|
+
version="1.1.12",
|
|
22
22
|
description="A set of command line tools to inspect, manipulate and convert font files",
|
|
23
23
|
long_description=long_description,
|
|
24
24
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/assistant/__init__.py
RENAMED
|
File without changes
|
{foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/assistant/fonts_data.py
RENAMED
|
File without changes
|
{foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/assistant/styles_mapping.py
RENAMED
|
File without changes
|
|
File without changes
|
{foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/converters/__init__.py
RENAMED
|
File without changes
|
{foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/converters/options.py
RENAMED
|
File without changes
|
{foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/converters/otf_to_ttf.py
RENAMED
|
File without changes
|
{foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/converters/sfnt_to_web.py
RENAMED
|
File without changes
|
{foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/converters/ttc_to_sfnt.py
RENAMED
|
File without changes
|
{foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/converters/ttf_to_otf.py
RENAMED
|
File without changes
|
|
File without changes
|
{foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/converters/web_to_sfnt.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/utils/click_tools.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/utils/ps_recalc_stems.py
RENAMED
|
File without changes
|
{foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundryToolsCLI/Lib/utils/ps_recalc_zones.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundrytools_cli.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{foundrytools-cli-1.1.11 → foundrytools_cli-1.1.12}/foundrytools_cli.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|