1
0
mirror of https://github.com/google/fonts.git synced 2024-12-03 02:26:11 +03:00
fonts/axisregistry/setup.py
Chris Simpkins 7443395948
Sync axisregistry subtree and resolve conflicts (#5072)
* Creating `flair.svg`

* y_transparent_descender.textproto Use depth, not height

* weight and width textprotos updated to say stroke weight

* update tox

* run black

* wip name builder

* add build_fvar_instances

* black

* wip linked values

* fix vf name table generation for sibling fonts

* add nameID25

* black

* test static name table generation

* rm local stuff

* add prelim fvar instance check

* improve fvar instance checks

* cleanup stat tests

* run black

* fix tests

* ignore egg-info

* ignore _version

* refactor name check

* Add VF tests

* black

* add logging

* clean up

* convert AxisRegistry into a class

* clean up

* use enums

* replace old family name with new name

* add test for style name which is not part of the allowed static fonts

* add nameID25 checks

* add build filename

* fix replacing names

* simplyify

* implement Simon feedback

* Add wonky example

* do not delete stat name ids if they are used in the fvar table

* do not delete name records which are needed elsehwere

* implement simon feedback

* actions: publish release added

* build_fvar_instances: support fonts which lack wght axis

* AxisRegistry: add items method

* add _fvar_instance_collision.

Determine whether a family of fonts will have fvar instances which collide

* add axis ordering

* fix fvar_collision heuristic

* black

* Don't delete name IDs which are shared with the STAT table

* Update __init__.py

* build_fvar_instances: fix typo

* fix dependencies

* black

* update tox

* tox black: ignore _version.py

* Move nameid25 to its own func

* make family_name optional

* EGRD custom axis added

Co-authored-by: Elliot Jay Stocks <elliot@elliotjaystocks.com>
Co-authored-by: Dave Crossland <dave@lab6.com>
Co-authored-by: Marc Foley <m.foley.88@gmail.com>
Co-authored-by: Nathan Williams <nlw2sx@virginia.edu>
Co-authored-by: Simon Cozens <simon@simon-cozens.org>
Co-authored-by: Viviana Monsalve <viviana.monsalve.a@gmail.com>
2022-08-17 23:30:44 -04:00

48 lines
1.8 KiB
Python

# coding: utf-8
#
# Copyright 2022 Google LLC All Rights Reserved.
#
# Licensed 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 at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless 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.
#
# See AUTHORS.txt for the list of Authors and LICENSE.txt for the License.
from setuptools import setup
# Read the contents of the README file
with open("README.md") as f:
long_description = f.read()
setup(
name="axisregistry",
use_scm_version={"write_to": "Lib/axisregistry/_version.py"},
url="https://github.com/googlefonts/axisregistry/",
description="A python API to access data from the Google Fonts variable fonts axis registry.",
long_description=long_description,
long_description_content_type="text/markdown", # This is important!
author=("Felipe Sanches"),
author_email="juca@members.fsf.org",
package_dir={"": "Lib"},
packages=["axisregistry"],
package_data={"axisregistry": ["data/*.textproto"]},
zip_safe=False,
classifiers=[
"Intended Audience :: Developers",
"Topic :: Text Processing :: Fonts",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
],
python_requires=">=3.7",
setup_requires=["setuptools_scm>=4,<6.1"],
install_requires=["protobuf==3.19.4", "fonttools"],
)