{ "info": { "author": "John C F", "author_email": "john.ch.fr@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Text Processing :: Fonts", "Topic :: Utilities" ], "description": "ttf2web\n=======\n\nA tool to split/segment a TTF file into multiple WOFF2 files based on Unicode\ncharacter ranges, and generate a CSS file that describes that font face as an\naggregate of those WOFF2 files.\n\nInstallation\n------------\n\n.. code::\n\n pip install ttf2web\n\nUsage\n-----\n\n.. code::\n\n ttf2web /path/to/font-file.ttf\n\nThis will split ``font-file.ttf`` based on a set of pre-defined Unicode ranges,\nand create (in the working directory) ``font-file.css`` and a directory named\n``assets`` containing the WOFF2 files.\n\nHere's a demo of a more complete example:\n\n.. code::\n\n $ ls\n Raleway-Regular.ttf unicode-ranges\n\n $ cat unicode-ranges\n greek U+0370-03FF\n greek-ext U+1F00-1FFF\n latin U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC\n latin-ext U+0100-024F,U+0259,U+1E00-1EFF,U+20A0-20CF,U+2C60-2C7F,U+A720-A7FF\n\n $ ttf2web -v --unicode-ranges unicode-ranges Raleway-Regular.ttf\n Processing greek\n Generated assets/Raleway-Regular.greek.woff2\n Found 1 glyphs for 1 out of 144 unicodes\n Processing greek-ext\n Found no glyphs for any of 256 unicodes\n Processing latin\n Generated assets/Raleway-Regular.latin.woff2\n Found 202 glyphs for 197 out of 264 unicodes\n Processing latin-ext\n Generated assets/Raleway-Regular.latin-ext.woff2\n Found 157 glyphs for 157 out of 897 unicodes\n Generated Raleway-Regular.css\n\n $ ls\n assets Raleway-Regular.css Raleway-Regular.ttf unicode-ranges\n\n $ head -n 12 Raleway-Regular.css\n @font-face {\n font-family: \"Raleway\";\n font-style: normal;\n font-weight: 400;\n src: local(\"Raleway\"), url(assets/Raleway-Regular.greek.woff2) format(\"woff2\");\n unicode-range: U+0370-03FF;\n }\n @font-face {\n font-family: \"Raleway\";\n font-style: normal;\n font-weight: 400;\n src: local(\"Raleway\"), url(assets/Raleway-Regular.latin.woff2) format(\"woff2\");\n\nLICENSE\n-------\n\nMIT\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/johncf/ttf2web", "keywords": "ttf woff2 webfont converter splitter css", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "ttf2web", "package_url": "https://pypi.org/project/ttf2web/", "platform": "", "project_url": "https://pypi.org/project/ttf2web/", "project_urls": { "Homepage": "https://github.com/johncf/ttf2web" }, "release_url": "https://pypi.org/project/ttf2web/0.9.3/", "requires_dist": [ "fonttools" ], "requires_python": "", "summary": "A tool to optimize fonts for web distribution.", "version": "0.9.3" }, "last_serial": 3534286, "releases": { "0.9.3": [ { "comment_text": "", "digests": { "md5": "1c283eb8bff3ef177e3e1ead641cb261", "sha256": "9627871131c94c738c0ca59c82db2d81cb3a0fbcb1bffc8c6e85c35a3b252eb4" }, "downloads": -1, "filename": "ttf2web-0.9.3-py3-none-any.whl", "has_sig": false, "md5_digest": "1c283eb8bff3ef177e3e1ead641cb261", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6259, "upload_time": "2018-01-30T08:50:07", "url": "https://files.pythonhosted.org/packages/d4/cf/d3484d9714076d7903b28ff70a2164c87184cb74d2901a7fb50e1e80a149/ttf2web-0.9.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ef47f6d781fbed38780259cb1f2cab10", "sha256": "034ed2c00ad663a8f57625e13de6398b9feeafd71e19a03295de431f9ee93748" }, "downloads": -1, "filename": "ttf2web-0.9.3.tar.gz", "has_sig": false, "md5_digest": "ef47f6d781fbed38780259cb1f2cab10", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4287, "upload_time": "2018-01-30T08:50:09", "url": "https://files.pythonhosted.org/packages/e0/ec/85ae893c464f829a1dd96b14ecfa07a4fe5a7c3d55df5f2f5f2b66d832fd/ttf2web-0.9.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1c283eb8bff3ef177e3e1ead641cb261", "sha256": "9627871131c94c738c0ca59c82db2d81cb3a0fbcb1bffc8c6e85c35a3b252eb4" }, "downloads": -1, "filename": "ttf2web-0.9.3-py3-none-any.whl", "has_sig": false, "md5_digest": "1c283eb8bff3ef177e3e1ead641cb261", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6259, "upload_time": "2018-01-30T08:50:07", "url": "https://files.pythonhosted.org/packages/d4/cf/d3484d9714076d7903b28ff70a2164c87184cb74d2901a7fb50e1e80a149/ttf2web-0.9.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ef47f6d781fbed38780259cb1f2cab10", "sha256": "034ed2c00ad663a8f57625e13de6398b9feeafd71e19a03295de431f9ee93748" }, "downloads": -1, "filename": "ttf2web-0.9.3.tar.gz", "has_sig": false, "md5_digest": "ef47f6d781fbed38780259cb1f2cab10", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4287, "upload_time": "2018-01-30T08:50:09", "url": "https://files.pythonhosted.org/packages/e0/ec/85ae893c464f829a1dd96b14ecfa07a4fe5a7c3d55df5f2f5f2b66d832fd/ttf2web-0.9.3.tar.gz" } ] }