Package: dehinter
Aboutdehinteris a Python command line application that removes TrueType instruction sets, global hinting tables, and other associated OpenType table data in font files. The tool provides cross-platform support on macOS, Windows, and Linux systems with a Python v3.7+ interpreter.What it doesRemoves OpenTypeglyf tableinstruction set bytecode dataRemoves OpenType and other TTF hinting related tables -cvt table-fpgm table-hdmx table-LTSH table-prep table-TTFA table(not part of the OpenType specification) -VDMX tableRemoves OpenTypecvar tablefrom variable fontsUpdatesgasp tablevaluesUpdatesmaxp tablevaluesUpdateshead tablebit flagsDisplays file sizes of the hinted and dehinted versions of the fontsOptions allow you to maintain the original version of any of these tables.Installationdehinterrequires a Python 3.7+ interpreter.Installation in aPython3 virtual environmentis recommended as dependencies are pinned to versions that are confirmed to work with this project.Use any of the following installation approaches:pip install from PyPI$ pip3 install dehinterpip install from source$ git clone https://github.com/source-foundry/dehinter.git
$ cd dehinter
$ pip3 install .Developer install from sourceThe following approach installs the project and associated optional developer dependencies so that source changes are available without the need for re-installation.$ git clone https://github.com/source-foundry/dehinter.git
$ cd dehinter
$ pip3 install --ignore-installed -r requirements.txt -e ".[dev]"Usage$ dehinter [OPTIONS] [HINTED FILE PATH]By default, a new dehinted font build write occurs on the path[ORIGINAL HINTED FONT NAME]-dehinted.ttfin the[HINTED FILE PATH]directory.Usedehinter -hto view available options.IssuesPlease report issues on theproject issue tracker.ContributingContributions are warmly welcomed. A development dependency environment can be installed in editable mode with the developer installation documentation above.Please use the standard Github pull request approach to propose source changes.Source file lintingPython source files are linted withflake8. See the Makefiletest-linttarget for details.Source file static type checksStatic type checks are performed on Python source files withmypyand are based on type annotations in the Python source files. See the Makefiletest-type-checktarget for details.TestingThe project runs continuous integration testing on GitHub Actions runners with thepytesttesting toolchain. Test modules are located in thetestsdirectory of the repository.Local testing by Python interpreter version can be performed with the following command executed from the root of the repository:$ tox -e [PYTHON INTERPRETER VERSION]Please see thetoxdocumentation for additional details.Test coverageUnit test coverage is executed with thecoveragetool. See the Makefiletest-coveragetarget for details.Acknowledgmentsdehinteris built with the fantasticfontTools free software libraryand is based on the dehinting approach used in thettfautohintfree software project.LicenseCopyright 2019 Source Foundry Authors and ContributorsLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.