Python utilities for Adobe Glyph List For New Fonts
Project description
aglfn
pip install aglfn
💾 Install • 🎮 Quick start • 📋 Testing • 😍 Acknowledgements • 👤 Contributing • 💼 License
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.
AGFLN is a subset of the AGL list intended to provide a baselist of glyphs for a new Latin font. More detailed information could be found on the repo and on the AGL specification.
🚩 Table of Contents (click to expand)
💾 Install
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
names
get the list of all the AGLFN names
import aglfn
print(aglfn.names)
glyphs
get the list of all glyphs with a corresponding AGLFN name
import aglfn
print(aglfn.glyphs)
name()
get the corresponding AGLFN name by passing a glyph
import aglfn
name = aglfn.name('€')
assert 'Euro' == name
to_glyph()
get the corresponding glyph by passing an AGLFN name
import aglfn
glyph = aglfn.to_glyph('Euro')
assert '€' == glyph
📋 Testing
Test are executed with travis, in case you want to run them locally just:
cd aglfn
python setup.py test
😍 Acknowledgements
Copyright 🄯 2020 Puria Nafisi Azizi, Italy
Designed, written and maintained by Puria Nafisi Azizi.
Logo, dictionary by Smalllike from the Noun Project.
👤 Contributing
- 🔀 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
💼 License
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aglfn-0.0.3.tar.gz
.
File metadata
- Download URL: aglfn-0.0.3.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87f560a858446bc961f071f58cf79591bdca375adc81746508f9f22901b7600d |
|
MD5 | f5f66022d963e51a2106efda161d471c |
|
BLAKE2b-256 | 8ffc4d558a8befc690b3b2805641e4c486acd58c3f9dd70066b6eb63c55b94a3 |
File details
Details for the file aglfn-0.0.3-py2.py3-none-any.whl
.
File metadata
- Download URL: aglfn-0.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 23.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b32d29db05a9e86031620d4ae1364ce802c04a19bf00ce3f7b39b98e8841a938 |
|
MD5 | ecf2297056bccf6751857902106df5dc |
|
BLAKE2b-256 | 39506212b949fbb7b23c07880caa8ef688ffde1bb99d5c1a93fecb612bb23048 |