Name | babelfont JSON |
Version |
3.0.5
JSON |
| download |
home_page | None |
Summary | Load, examine and save fonts in a variety of formats |
upload_time | 2024-05-08 09:20:53 |
maintainer | None |
docs_url | None |
author | None |
requires_python | None |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Babelfont: Load, examine and save fonts in a variety of formats
*This describes Babelfont >3.0, which is a complete rewrite from the previous version.*
Babelfont is a utility for loading fonts and examining fonts in a variety
of formats. It can also be used to *write* fonts in some of these formats,
making it possible to convert between font formats.
Here are the formats which are currently supported:
| Format | Read | Write |
|-----------------|---------|-------|
| Glyphs 2 | partial | |
| Glyphs 3 | * | * |
| .glyphspackage | * | |
| UFO | * | |
| Designspace | * | |
| Fontlab VFJ | partial | |
| Fontlab VFB | partial | |
| TTF | partial | * |
| OTF | partial | |
| Fontforge SFD | partial | * |
| Fontforge SFDir | partial | * |
| Babelfont | * | * |
Babelfont converts all of the above font formats into a intermediary
set of objects, whose object hierarchy can be seen [here](https://simoncozens.github.io/babelfont). The allows
the developer to examine any font (single master or variable), without
needing to worry about the details of each font format.
For example:
```python
from babelfont import load
font = load("Myfont.glyphs") # Or .designspace, or whatever
default_a = font.default_master.get_glyph_layer("A")
top_anchor = default_a.anchors_dict["top"].x
print("Top anchor = (%i,%i)" % (top_anchor.x, top_anchor.y))
print("LSB, RSB = (%i,%i)" % (default_a.lsb, default_a.rsb))
font.save("Myfont.ttf")
```
Raw data
{
"_id": null,
"home_page": null,
"name": "babelfont",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": null,
"author_email": "Simon Cozens <simon@simon-cozens.org>",
"download_url": "https://files.pythonhosted.org/packages/22/df/ba115364d511b1eb9ea1808d7a7e89536f202c9585970750468849bf1ec2/babelfont-3.0.5.tar.gz",
"platform": null,
"description": "# Babelfont: Load, examine and save fonts in a variety of formats\n\n*This describes Babelfont >3.0, which is a complete rewrite from the previous version.*\n\nBabelfont is a utility for loading fonts and examining fonts in a variety\nof formats. It can also be used to *write* fonts in some of these formats,\nmaking it possible to convert between font formats.\n\nHere are the formats which are currently supported:\n\n| Format | Read | Write |\n|-----------------|---------|-------|\n| Glyphs 2 | partial | |\n| Glyphs 3 | * | * |\n| .glyphspackage | * | |\n| UFO | * | |\n| Designspace | * | |\n| Fontlab VFJ | partial | |\n| Fontlab VFB | partial | |\n| TTF | partial | * |\n| OTF | partial | |\n| Fontforge SFD | partial | * |\n| Fontforge SFDir | partial | * |\n| Babelfont | * | * |\n\nBabelfont converts all of the above font formats into a intermediary\nset of objects, whose object hierarchy can be seen [here](https://simoncozens.github.io/babelfont). The allows\nthe developer to examine any font (single master or variable), without\nneeding to worry about the details of each font format.\n\nFor example:\n\n```python\nfrom babelfont import load\n\nfont = load(\"Myfont.glyphs\") # Or .designspace, or whatever\ndefault_a = font.default_master.get_glyph_layer(\"A\")\ntop_anchor = default_a.anchors_dict[\"top\"].x\nprint(\"Top anchor = (%i,%i)\" % (top_anchor.x, top_anchor.y))\nprint(\"LSB, RSB = (%i,%i)\" % (default_a.lsb, default_a.rsb))\nfont.save(\"Myfont.ttf\")\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Load, examine and save fonts in a variety of formats",
"version": "3.0.5",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "36d36f382e037679276721de90dc59f1f00c4fc4a8f14b890b5545d7df423071",
"md5": "30740f1cc9f93eb10e859341bf533135",
"sha256": "6b643ca4a8d5988a9011fcbb1b53e1d66db7c841451d6e975c1e2be3e697f202"
},
"downloads": -1,
"filename": "babelfont-3.0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "30740f1cc9f93eb10e859341bf533135",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 554568,
"upload_time": "2024-05-08T09:20:51",
"upload_time_iso_8601": "2024-05-08T09:20:51.700303Z",
"url": "https://files.pythonhosted.org/packages/36/d3/6f382e037679276721de90dc59f1f00c4fc4a8f14b890b5545d7df423071/babelfont-3.0.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "22dfba115364d511b1eb9ea1808d7a7e89536f202c9585970750468849bf1ec2",
"md5": "79ec7f78d7f1c83c40730324a2c1455c",
"sha256": "85f8a789c8533aa0822621f05e7c152b6a8949808b10034266b705baca996abc"
},
"downloads": -1,
"filename": "babelfont-3.0.5.tar.gz",
"has_sig": false,
"md5_digest": "79ec7f78d7f1c83c40730324a2c1455c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 1440246,
"upload_time": "2024-05-08T09:20:53",
"upload_time_iso_8601": "2024-05-08T09:20:53.783999Z",
"url": "https://files.pythonhosted.org/packages/22/df/ba115364d511b1eb9ea1808d7a7e89536f202c9585970750468849bf1ec2/babelfont-3.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-08 09:20:53",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "babelfont"
}