foundrytools-cli 1.1.15__tar.gz → 1.1.16__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.15/foundrytools_cli.egg-info → foundrytools_cli-1.1.16}/PKG-INFO +1 -1
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/CLI/ftcli_hhea.py +7 -7
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/Font.py +4 -1
- foundrytools_cli-1.1.16/foundryToolsCLI/__init__.py +3 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16/foundrytools_cli.egg-info}/PKG-INFO +1 -1
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/setup.py +1 -1
- foundrytools_cli-1.1.15/foundryToolsCLI/__init__.py +0 -3
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/LICENSE +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/MANIFEST.in +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/README.md +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/CLI/__init__.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/CLI/ftcli_assistant.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/CLI/ftcli_cff.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/CLI/ftcli_converter.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/CLI/ftcli_fix.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/CLI/ftcli_metrics.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/CLI/ftcli_name.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/CLI/ftcli_os2.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/CLI/ftcli_otf.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/CLI/ftcli_post.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/CLI/ftcli_print.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/CLI/ftcli_ttf.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/CLI/ftcli_utils.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/VFont.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/__init__.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/assistant/UI.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/assistant/__init__.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/assistant/fonts_data.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/assistant/styles_mapping.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/constants.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/converters/__init__.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/converters/options.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/converters/otf_to_ttf.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/converters/sfnt_to_web.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/converters/ttc_to_sfnt.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/converters/ttf_to_otf.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/converters/variable_to_static.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/converters/web_to_sfnt.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/printer/UI.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/printer/__init__.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/tables/CFF_.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/tables/OS_2.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/tables/__init__.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/tables/head.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/tables/hhea.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/tables/name.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/tables/post.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/utils/__init__.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/utils/bits_tools.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/utils/cli_tools.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/utils/click_tools.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/utils/logger.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/utils/otf_tools.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/utils/ps_recalc_stems.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/utils/ps_recalc_zones.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/utils/skia_tools.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/utils/text_tools.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/utils/timer.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/utils/ttf_tools.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/__main__.py +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundrytools_cli.egg-info/SOURCES.txt +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundrytools_cli.egg-info/dependency_links.txt +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundrytools_cli.egg-info/entry_points.txt +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundrytools_cli.egg-info/not-zip-safe +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundrytools_cli.egg-info/requires.txt +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundrytools_cli.egg-info/top_level.txt +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/requirements.txt +0 -0
- {foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/setup.cfg +0 -0
|
@@ -48,7 +48,7 @@ def cli(
|
|
|
48
48
|
):
|
|
49
49
|
"""A command line tool to manipulate the ``hhea`` table."""
|
|
50
50
|
|
|
51
|
-
if not any([rise, run, offset, ascent, descent, linegap, recalc_offset]):
|
|
51
|
+
if not any([rise, run, offset, ascent, descent, linegap, recalc_offset]) is not None:
|
|
52
52
|
logger.error(Logs.no_parameter)
|
|
53
53
|
return
|
|
54
54
|
|
|
@@ -67,22 +67,22 @@ def cli(
|
|
|
67
67
|
hhea_table: TableHhea = font["hhea"]
|
|
68
68
|
hhea_table_copy = copy(hhea_table)
|
|
69
69
|
|
|
70
|
-
if rise:
|
|
70
|
+
if rise is not None:
|
|
71
71
|
hhea_table.set_caret_slope_rise(rise)
|
|
72
72
|
|
|
73
|
-
if run:
|
|
73
|
+
if run is not None:
|
|
74
74
|
hhea_table.set_caret_slope_run(run)
|
|
75
75
|
|
|
76
|
-
if offset:
|
|
76
|
+
if offset is not None:
|
|
77
77
|
hhea_table.set_caret_offset(offset)
|
|
78
78
|
|
|
79
|
-
if ascent:
|
|
79
|
+
if ascent is not None:
|
|
80
80
|
hhea_table.set_ascent(ascent)
|
|
81
81
|
|
|
82
|
-
if descent:
|
|
82
|
+
if descent is not None:
|
|
83
83
|
hhea_table.set_descent(descent)
|
|
84
84
|
|
|
85
|
-
if linegap:
|
|
85
|
+
if linegap is not None:
|
|
86
86
|
hhea_table.set_linegap(linegap)
|
|
87
87
|
|
|
88
88
|
if recalc_offset:
|
|
@@ -629,7 +629,10 @@ class Font(TTFont):
|
|
|
629
629
|
source = 1
|
|
630
630
|
|
|
631
631
|
if source == 1:
|
|
632
|
-
return
|
|
632
|
+
return (
|
|
633
|
+
f"{self.guess_family_name()}-{self.guess_subfamily_name()}"
|
|
634
|
+
.replace(" ", "").replace(".", "")
|
|
635
|
+
)
|
|
633
636
|
elif source == 2:
|
|
634
637
|
return self["name"].getDebugName(6)
|
|
635
638
|
elif source == 3:
|
|
@@ -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.16",
|
|
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
|
{foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/assistant/__init__.py
RENAMED
|
File without changes
|
{foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/assistant/fonts_data.py
RENAMED
|
File without changes
|
{foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/assistant/styles_mapping.py
RENAMED
|
File without changes
|
|
File without changes
|
{foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/converters/__init__.py
RENAMED
|
File without changes
|
{foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/converters/options.py
RENAMED
|
File without changes
|
{foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/converters/otf_to_ttf.py
RENAMED
|
File without changes
|
{foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/converters/sfnt_to_web.py
RENAMED
|
File without changes
|
{foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/converters/ttc_to_sfnt.py
RENAMED
|
File without changes
|
{foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/converters/ttf_to_otf.py
RENAMED
|
File without changes
|
|
File without changes
|
{foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/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.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/utils/click_tools.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundryToolsCLI/Lib/utils/ps_recalc_stems.py
RENAMED
|
File without changes
|
{foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/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.15 → foundrytools_cli-1.1.16}/foundrytools_cli.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{foundrytools_cli-1.1.15 → foundrytools_cli-1.1.16}/foundrytools_cli.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|