diff --git a/dev-python/fontFeatures/Manifest b/dev-python/fontFeatures/Manifest new file mode 100644 index 0000000000..346796d564 --- /dev/null +++ b/dev-python/fontFeatures/Manifest @@ -0,0 +1 @@ +DIST fontFeatures-1.6.4.tar.gz 1236722 BLAKE2B 0efcda0175de36d5e3d78c02fc6e835f3f39a14e6d050340d23dbf391ecf6cee9385822e8a005ed45d783bb467f25b087c1b473f4af1186dff98d7d9502c6b4e SHA512 fef775845b1d6dbd2b81a7f44429586ba63bdbcc3f2a5124e4dda41e8af62ac81b143e6d7e1443c3bb90e12f7f592b512bcd90bcbdc18e5eb07de195956cc196 diff --git a/dev-python/fontFeatures/fontFeatures-1.6.4.ebuild b/dev-python/fontFeatures/fontFeatures-1.6.4.ebuild new file mode 100644 index 0000000000..7d6d5a20b0 --- /dev/null +++ b/dev-python/fontFeatures/fontFeatures-1.6.4.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..9} ) + +inherit distutils-r1 + +DESCRIPTION="Python library for manipulating OpenType font features" +HOMEPAGE="https://github.com/simoncozens/fontFeatures" +SRC_URI="https://github.com/simoncozens/fontFeatures/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" +LICENSE="MIT" +SLOT="0" + +RDEPEND=" + dev-python/fs[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + >=dev-python/fonttools-4.28.0[${PYTHON_USEDEP}] + >=dev-python/glyphtools-0.7.0[${PYTHON_USEDEP}] + >=dev-python/beziers-0.1.0[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND}" + +distutils_enable_tests pytest diff --git a/dev-python/fontFeatures/metadata.xml b/dev-python/fontFeatures/metadata.xml new file mode 100644 index 0000000000..17f0c7151b --- /dev/null +++ b/dev-python/fontFeatures/metadata.xml @@ -0,0 +1,35 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + https://github.com/simoncozens/fontFeatures/issues + simoncozens/fontFeatures + fontFeatures + + +fontFeatures library +The purpose of this library is to provide a middle ground for representing features in a machine-manipulable format, kind of like the abstract syntax tree of a computer programmer. This is so that: + + features can be represented in a structured human-readable and machine-readable way, analogous to the XML files of the Unified Font Object format. + features can be more directly authored by programs (such as font editors), rather than them having to output AFDKO feature file format. + features can be easily manipulated by programs - for example, features from two files merged together, or lookups moved between languages. + +Components + +fontFeatures consists of the following components: + + fontFeatures itself, which is an abstract representation of the different layout operations inside a font. + fontFeatures.feaLib (included as a mixin) which translates between Adobe feature syntax and fontFeatures representation. + fontFeatures.ttLib, which translates between OpenType binary fonts and fontFeatures representation. (Currently only OTF -> fontFeatures is partially implemented; there is no fontFeatures -> OTF compiler yet.) + fontFeatures.fontDameLib which translate FontDame text files into fontFeatures objects. + +And the following utilities: + + otf2fea: translates an OTF file into Adobe features syntax. + txt2fea: translates a FontDame txt file into Adobe features syntax. + +