babelfont


Namebabelfont JSON
Version 3.1.0 PyPI version JSON
download
home_pageNone
SummaryLoad, examine and save fonts in a variety of formats
upload_time2024-11-13 13:56:23
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/2c/fe/53ac665cbe3602d3085b802f039efdf1a01e30b72102aff487d9ee6f0371/babelfont-3.1.0.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.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3f34773bc4c4bd32b57fa8147696fda165803df2a88a93a66d7eec9ec3e803f8",
                "md5": "65f322ef69520e81d558fee58fa4636e",
                "sha256": "4964bf9a3eab22646a32f912e370beb2a247897fe57af8e9dffe0e35ca93a857"
            },
            "downloads": -1,
            "filename": "babelfont-3.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "65f322ef69520e81d558fee58fa4636e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 559574,
            "upload_time": "2024-11-13T13:56:21",
            "upload_time_iso_8601": "2024-11-13T13:56:21.981437Z",
            "url": "https://files.pythonhosted.org/packages/3f/34/773bc4c4bd32b57fa8147696fda165803df2a88a93a66d7eec9ec3e803f8/babelfont-3.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2cfe53ac665cbe3602d3085b802f039efdf1a01e30b72102aff487d9ee6f0371",
                "md5": "b3c072d5001887078060c4c0018e0fdb",
                "sha256": "60b4ac870f81ccf49045671abee5d78f334121b96027b95d2eeb91740d831ec4"
            },
            "downloads": -1,
            "filename": "babelfont-3.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "b3c072d5001887078060c4c0018e0fdb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 1426896,
            "upload_time": "2024-11-13T13:56:23",
            "upload_time_iso_8601": "2024-11-13T13:56:23.801758Z",
            "url": "https://files.pythonhosted.org/packages/2c/fe/53ac665cbe3602d3085b802f039efdf1a01e30b72102aff487d9ee6f0371/babelfont-3.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-13 13:56:23",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "babelfont"
}
        
Elapsed time: 3.16758s