python-ufo2ft
Port variant py39
Summary Bridge between UFOs and FontTools (3.9)
Package version 2.30.0
Homepage https://github.com/googlefonts/ufo2ft
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants py310
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 26 NOV 2022, 16:37:55 UTC
Port created 03 JAN 2020, 01:03:23 UTC
Subpackage Descriptions
single |GitHub Actions status| |PyPI Version| |Codecov| |Gitter Chat| ufo2ft ====== ufo2ft ("UFO to FontTools") is a fork of [ufo2fdk] whose goal is to generate OpenType font binaries from UFOs without the FDK dependency. The library provides two functions, compileOTF and compileTTF, which work exactly the same way: Color fonts ~~~~~~~~~~~ ufo2ft supports building COLR and CPAL tables. If there is ``com.github.googlei18n.ufo2ft.colorPalettes`` key in font lib, and ``com.github.googlei18n.ufo2ft.colorLayerMapping`` key in the font or in any of the glyphs lib, then ufo2ft will build CPAL table from the color palettes, and COLR table from the color layers. colorPalettes is a array of palettes, each palette is a array of colors and each color is a array of floats representing RGBA colors. For example: .. code:: xml com.github.googlei18n.ufo2ft.colorPalettes 0.26 0.0 0.23 1.0 0.86 0.73 0.28 1.0 colorLayerMapping is a array of color layers, each color layer is a array of layer name and palette color index. It is a per-glyph key, but if present in the font lib then it will be used for all glyphs that lack it. For example: .. code:: xml com.github.googlei18n.ufo2ft.colorLayerMapping color.1 1 color.2 0 With these this key present, ufo2ft will copy the color layers into individual glyphs and setup COLR table. Alternatively, if the color layers are already separate UFO glyphs, the ``com.github.googlei18n.ufo2ft.colorLayers`` font lib key can be used. It uses a table keyed by base glyph, and the value is an array of color layers, each color layer is an array of glyph name and palette color index. For example: .. code:: xml com.github.googlei18n.ufo2ft.colorLayers alef-ar alef-ar.color0 2 alefHamzaabove-ar alefHamzaabove-ar.color0 1 alefHamzaabove-ar.color1 2
Configuration Switches (platform-specific settings discarded)
PY310 OFF Build using Python 3.10 PY39 ON Build using Python 3.9
Package Dependencies by Type
Build (only) python-pip:single:py39
autoselect-python:single:standard
Build and Runtime python39:single:standard
Runtime (only) python-fonttools:single:py39
python-cu2qu:single:py39
python-cffsubr:single:py39
python-booleanOperations:single:py39
Download groups
main mirror://PYPIWHL/22/73/238f2f51be24f8790dfae38a677ba527b6b95d6b76242779fac30846f186
Distribution File Information
251c78f28cb054595c34f4071dbaa822ec9c2d79db69bf4ab31c18c05a3ed6cc 98393 ufo2ft-2.30.0-py2.py3-none-any.whl
Ports that require python-ufo2ft:py39
fonts-cantarell:standard Cantarell, Humanist sans-serif font family