foundrytools-cli 1.1.19__tar.gz → 1.1.21__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.19/foundrytools_cli.egg-info → foundrytools_cli-1.1.21}/PKG-INFO +1 -1
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/CLI/ftcli_converter.py +11 -1
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/Font.py +5 -2
- foundrytools_cli-1.1.21/foundryToolsCLI/__init__.py +3 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21/foundrytools_cli.egg-info}/PKG-INFO +1 -1
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/setup.py +1 -1
- foundrytools_cli-1.1.19/foundryToolsCLI/__init__.py +0 -3
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/LICENSE +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/MANIFEST.in +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/README.md +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/CLI/__init__.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/CLI/ftcli_assistant.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/CLI/ftcli_cff.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/CLI/ftcli_fix.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/CLI/ftcli_hhea.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/CLI/ftcli_metrics.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/CLI/ftcli_name.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/CLI/ftcli_os2.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/CLI/ftcli_otf.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/CLI/ftcli_post.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/CLI/ftcli_print.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/CLI/ftcli_ttf.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/CLI/ftcli_utils.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/VFont.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/__init__.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/assistant/UI.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/assistant/__init__.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/assistant/fonts_data.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/assistant/styles_mapping.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/constants.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/converters/__init__.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/converters/options.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/converters/otf_to_ttf.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/converters/sfnt_to_web.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/converters/ttc_to_sfnt.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/converters/ttf_to_otf.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/converters/variable_to_static.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/converters/web_to_sfnt.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/printer/UI.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/printer/__init__.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/tables/CFF_.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/tables/OS_2.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/tables/__init__.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/tables/head.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/tables/hhea.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/tables/name.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/tables/post.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/utils/__init__.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/utils/bits_tools.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/utils/cli_tools.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/utils/click_tools.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/utils/logger.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/utils/otf_tools.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/utils/ps_recalc_stems.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/utils/ps_recalc_zones.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/utils/skia_tools.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/utils/text_tools.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/utils/timer.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/utils/ttf_tools.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/__main__.py +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundrytools_cli.egg-info/SOURCES.txt +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundrytools_cli.egg-info/dependency_links.txt +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundrytools_cli.egg-info/entry_points.txt +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundrytools_cli.egg-info/not-zip-safe +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundrytools_cli.egg-info/requires.txt +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundrytools_cli.egg-info/top_level.txt +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/requirements.txt +0 -0
- {foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/setup.cfg +0 -0
|
@@ -141,6 +141,15 @@ def otf2ttf(
|
|
|
141
141
|
for a single instance.
|
|
142
142
|
""",
|
|
143
143
|
)
|
|
144
|
+
@click.option(
|
|
145
|
+
"-h",
|
|
146
|
+
"--hidden-axes",
|
|
147
|
+
is_flag=True,
|
|
148
|
+
default=False,
|
|
149
|
+
help="""
|
|
150
|
+
Use this option to include hidden axes in the list of available axes.
|
|
151
|
+
"""
|
|
152
|
+
)
|
|
144
153
|
@click.option(
|
|
145
154
|
"--no-cleanup",
|
|
146
155
|
"cleanup",
|
|
@@ -166,6 +175,7 @@ def otf2ttf(
|
|
|
166
175
|
@Timer(logger=logger.info)
|
|
167
176
|
def vf2i(
|
|
168
177
|
input_path: Path,
|
|
178
|
+
hidden_axes: bool = False,
|
|
169
179
|
select_instance: bool = False,
|
|
170
180
|
cleanup: bool = True,
|
|
171
181
|
update_name_table: bool = True,
|
|
@@ -199,7 +209,7 @@ def vf2i(
|
|
|
199
209
|
|
|
200
210
|
instances = variable_font.get_instances()
|
|
201
211
|
if select_instance:
|
|
202
|
-
axes = variable_font.get_axes()
|
|
212
|
+
axes = variable_font.get_axes(hidden_axes=hidden_axes)
|
|
203
213
|
selected_coordinates = select_instance_coordinates(axes)
|
|
204
214
|
is_named_instance = selected_coordinates in [i.coordinates for i in instances]
|
|
205
215
|
if not is_named_instance:
|
|
@@ -652,13 +652,16 @@ class Font(TTFont):
|
|
|
652
652
|
else:
|
|
653
653
|
return Path(self.reader.file.name).stem
|
|
654
654
|
|
|
655
|
-
def get_axes(self) -> list[Axis]:
|
|
655
|
+
def get_axes(self, hidden_axes: bool = False) -> list[Axis]:
|
|
656
656
|
"""
|
|
657
657
|
This function returns a list of axes in a variable font.
|
|
658
658
|
"""
|
|
659
659
|
if not self.is_variable:
|
|
660
660
|
return []
|
|
661
|
-
|
|
661
|
+
if hidden_axes:
|
|
662
|
+
return [axis for axis in self["fvar"].axes]
|
|
663
|
+
else:
|
|
664
|
+
return [axis for axis in self["fvar"].axes if axis.flags == 0]
|
|
662
665
|
|
|
663
666
|
def fix_cff_top_dict_version(self) -> None:
|
|
664
667
|
if not self.is_otf:
|
|
@@ -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.21",
|
|
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.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/assistant/__init__.py
RENAMED
|
File without changes
|
{foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/assistant/fonts_data.py
RENAMED
|
File without changes
|
{foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/assistant/styles_mapping.py
RENAMED
|
File without changes
|
|
File without changes
|
{foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/converters/__init__.py
RENAMED
|
File without changes
|
{foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/converters/options.py
RENAMED
|
File without changes
|
{foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/converters/otf_to_ttf.py
RENAMED
|
File without changes
|
{foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/converters/sfnt_to_web.py
RENAMED
|
File without changes
|
{foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/converters/ttc_to_sfnt.py
RENAMED
|
File without changes
|
{foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/converters/ttf_to_otf.py
RENAMED
|
File without changes
|
|
File without changes
|
{foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/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.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/utils/click_tools.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/foundryToolsCLI/Lib/utils/ps_recalc_stems.py
RENAMED
|
File without changes
|
{foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/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.19 → foundrytools_cli-1.1.21}/foundrytools_cli.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{foundrytools_cli-1.1.19 → foundrytools_cli-1.1.21}/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
|