Python utilities for Adobe Glyph List For New Fonts
pip install aglfn
aglfn is a small utility to access AGLFN names easily in Python. Many software tools for new typefaces often referes to glyphs with this names. Some typography tools tend to hardcode the aglfn.txt file and parse it, so this is an attempt to have the submodule of the AGLFN repository without inglobe those files each time in our repos.
🚩 Table of Contents (click to expand)
pip install aglfn
or if you want to install it locally for development clone this repo and then
cd aglfn pip install -e .
🎮 Quick start
get the list of all the AGLFN names
import aglfn print(aglfn.names)
get the list of all glyphs with a corresponding AGLFN name
import aglfn print(aglfn.glyphs)
get the corresponding AGLFN name by passing a glyph
import aglfn name = aglfn.name('€') assert 'Euro' == name
get the corresponding glyph by passing an AGLFN name
import aglfn glyph = aglfn.to_glyph('Euro') assert '€' == glyph
Test are executed with travis, in case you want to run them locally just:
cd aglfn python setup.py test
Copyright 🄯 2020 Puria Nafisi Azizi, Italy
Designed, written and maintained by Puria Nafisi Azizi.
Logo, dictionary by Smalllike from the Noun Project.
- 🔀 FORK IT
- Create your feature branch
git checkout -b feature/branch
- Commit your changes
git commit -am 'Add some foobar'
- Push to the branch
git push origin feature/branch
- Create a new Pull Request
- 🙏 Thank you
aglfn - Python utilities for Adobe Glyph List For New Fonts Copyright 🄯 2020 Puria Nafisi Azizi, Italy 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.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size aglfn-0.0.4-py2.py3-none-any.whl (23.8 kB)||File type Wheel||Python version py2.py3||Upload date||Hashes View|
|Filename, size aglfn-0.0.4.tar.gz (19.7 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for aglfn-0.0.4-py2.py3-none-any.whl