babelfont


Namebabelfont JSON
Version 3.1.1 PyPI version JSON
download
home_pageNone
SummaryLoad, examine and save fonts in a variety of formats
upload_time2024-11-26 14:33:43
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseNone
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/5c/3e/de734992a999ea821df9cffa21cd2605fb4ab02446a1381dd4160414f059/babelfont-3.1.1.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.1.1",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bf56256e7a058883984b8eaf339f0520b83e5bcaf8fac583892aec7bfc202b9a",
                "md5": "511057361dab33523aa17947b0fb06cb",
                "sha256": "cd2884b543c0491189fadb5a372e769a5b514f2638a3d6ba696012d224174f04"
            },
            "downloads": -1,
            "filename": "babelfont-3.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "511057361dab33523aa17947b0fb06cb",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 560729,
            "upload_time": "2024-11-26T14:33:39",
            "upload_time_iso_8601": "2024-11-26T14:33:39.132081Z",
            "url": "https://files.pythonhosted.org/packages/bf/56/256e7a058883984b8eaf339f0520b83e5bcaf8fac583892aec7bfc202b9a/babelfont-3.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5c3ede734992a999ea821df9cffa21cd2605fb4ab02446a1381dd4160414f059",
                "md5": "61d33ecde4f742d90766f9efd4d9866b",
                "sha256": "9b18c236378afa4e25f83bc2743cbbce05dbdd2121f7370ca27348240740030e"
            },
            "downloads": -1,
            "filename": "babelfont-3.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "61d33ecde4f742d90766f9efd4d9866b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 1428132,
            "upload_time": "2024-11-26T14:33:43",
            "upload_time_iso_8601": "2024-11-26T14:33:43.179549Z",
            "url": "https://files.pythonhosted.org/packages/5c/3e/de734992a999ea821df9cffa21cd2605fb4ab02446a1381dd4160414f059/babelfont-3.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-26 14:33:43",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "babelfont"
}
        
Elapsed time: 0.69602s