{ "info": { "author": "Leonardo Zhou", "author_email": "glasslion@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Build Tools" ], "description": "fontdump\n========\n\nA command line tool to dump the CSS and different formats of fonts for\n`Google Fonts `__, so you can serve them\non your local servers.\n\nUsage\n~~~~~\n\n::\n\n $ fontdump -h\n fontdump heps you dump google web fonts.\n __ _ _\n / _| | | | |\n | |_ ___ _ __ | |_ __| |_ _ _ __ ___ _ __\n | _/ _ \\| '_ \\| __/ _` | | | | '_ ` _ \\| '_ \\\n | || (_) | | | | || (_| | |_| | | | | | | |_) |\n |_| \\___/|_| |_|\\__\\__,_|\\__,_|_| |_| |_| .__/\n | |\n |_|\n Usage:\n fontdump [--font-dir-path=]\n fontdump (-h | --help)\n\n Options:\n -h --help Show this screen.\n --font-dir-path= Path to the font dir(ends with /).\n e.g('staic/fonts/', 'http://cdn/.../fonts/')\n --output= The directory saves the dumped css and font files\n\nFAQs\n~~~~\n\n**Question**: What\u2019s wrong with Google Fonts? Why do I want to serve the\nfonts on my own server?\n\n**Answer**: Google Fonts is Great. You shall use it normally. But for\nusers in some countries, Google Fonts is very slow and sometimes even\ninaccessible. Serving your own fonts is the only choice for them.\nBesides, some developers may wish to have more control over web fonts.\nThey might want to embed fonts as base64 strings into the css to bypass\ncrazy firewalls. They might to store the fonts as jsons to the\nlocalstorage to speed up page loading.\n\n**Question**: Why do I need to install a software to download these\nfonts? Can't I just open the Chrome developer tools and download the css\nand fonts manually?\n\n**Answer**: Making css font rules compatible with different browsers is\nnot easy. Thus Google detects the browser's User Agent string and serve\nthe css that is only compatible with the given browser.\n\nAs a web developer/designer, it is very likely that you are using a\nmodern browser, so the css you get from Google only works in modern\nbrowsers. To improve the user experience for old browser users , we need\nto download the 4 differnet formats of fonts and merge the css rules\ninto a single stylesheet. A tool can simplify the process.\n\n**Question**: What would the merged css look like?\n\n**Answer**:\n\nlike this:\n\n::\n\n @font-face {\n font-family: 'WebFont';\n src: url('webfont.eot'); /* IE9 Compat Modes */\n src: local('WebFont'),\n url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */\n url('webfont.woff') format('woff'), /* Modern Browsers */\n url('webfont.ttf') format('truetype'), /* Safari, Android, iOS */\n url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */\n }\n\nReference:\n~~~~~~~~~~\n\n`Using\n@font-face `__\n\n`Bulletproof @font-face\nSyntax `__\n\n`WEBFONT\nGENERATOR `__\n\n`Avoiding Faux Weights And Styles With Google Web\nFonts `__", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/glasslion/fontdump", "keywords": "font webfont", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "fontdump", "package_url": "https://pypi.org/project/fontdump/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/fontdump/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/glasslion/fontdump" }, "release_url": "https://pypi.org/project/fontdump/1.3.0/", "requires_dist": null, "requires_python": null, "summary": "A cli tool to dump the CSS and different formats offonts for Google Fonts", "version": "1.3.0" }, "last_serial": 1315446, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "3e7f3454c681b069a890ef3d1b2b6df6", "sha256": "bf560276fbbe57180d4f46282928f72937a366057d0df3c5a63dc0f0ce3f153f" }, "downloads": -1, "filename": "fontdump-0.1.0.tar.gz", "has_sig": false, "md5_digest": "3e7f3454c681b069a890ef3d1b2b6df6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3685, "upload_time": "2014-03-25T08:54:40", "url": "https://files.pythonhosted.org/packages/52/57/1cd55e6d629450b21dc14673a7a313b2f46d3d41af606e0ea24dd608d5c9/fontdump-0.1.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "b0e34e97815221685e90d2a06e4a89cb", "sha256": "1ecc0165f54b58dfd82ec667aac8aa95de7d5b6f5608f64896957e05c3f63c09" }, "downloads": -1, "filename": "fontdump-1.1.0.tar.gz", "has_sig": false, "md5_digest": "b0e34e97815221685e90d2a06e4a89cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5372, "upload_time": "2014-03-26T03:15:55", "url": "https://files.pythonhosted.org/packages/5b/69/dba37cb5e8080e62bd26dc34f84d125a319eb827bdf584f78698c98aa316/fontdump-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "66b44583db6cc3ae331f6c3a6423b30f", "sha256": "fbe7bfd6de908583583248b39d2318686d10a7c145af207c019707edae49a02b" }, "downloads": -1, "filename": "fontdump-1.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "66b44583db6cc3ae331f6c3a6423b30f", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8234, "upload_time": "2014-04-02T06:08:16", "url": "https://files.pythonhosted.org/packages/34/29/71eb6c3a74bd2e21306a4f8627d6488aba3f16c2a1958f64d87c41d3d700/fontdump-1.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c94b3226080dfe664707312a292f8398", "sha256": "e51c0c21bae995e680f4fe1fd5a3a894d80de74d9e2fbb7b2f7b47a2f9c9b4ea" }, "downloads": -1, "filename": "fontdump-1.2.0.tar.gz", "has_sig": false, "md5_digest": "c94b3226080dfe664707312a292f8398", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6075, "upload_time": "2014-04-02T06:04:04", "url": "https://files.pythonhosted.org/packages/e9/a9/88e4c7c5ed869abd05742e3abe0e190f6526b028ea6a50ed9a498a1f97b3/fontdump-1.2.0.tar.gz" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "44f43fb3d1b09a3cf63b4c7d8c17b9c7", "sha256": "8714a2e750fcbb47326887d5f0c4021889a1d03b4ff141f36c5b204af0ca10ca" }, "downloads": -1, "filename": "fontdump-1.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "44f43fb3d1b09a3cf63b4c7d8c17b9c7", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8253, "upload_time": "2014-10-30T08:51:56", "url": "https://files.pythonhosted.org/packages/b5/8a/19a6d8f02da76b810974139a111c3fb590332f1793d375e421c768eb87ad/fontdump-1.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c670187c2635a136f4bfc3c52549491c", "sha256": "44ba870abdf5fdd545ec6e679c7186fce998dd2355d1a665629471d0deeeee40" }, "downloads": -1, "filename": "fontdump-1.2.1.tar.gz", "has_sig": false, "md5_digest": "c670187c2635a136f4bfc3c52549491c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6801, "upload_time": "2014-10-30T08:45:08", "url": "https://files.pythonhosted.org/packages/f5/7a/c4614b68679d90f900ae569a0a26eae7c8b2c9ac99d065d3b658418f4429/fontdump-1.2.1.tar.gz" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "f0c186b4198a2bc3b6c1276c18eecc12", "sha256": "39431cc485eadf76085a69c3272bcef943f7916737a8586aa941b7f4d14c04ff" }, "downloads": -1, "filename": "fontdump-1.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f0c186b4198a2bc3b6c1276c18eecc12", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8253, "upload_time": "2014-11-21T04:01:40", "url": "https://files.pythonhosted.org/packages/0f/c9/7a10f41284a9ab243e4b6170f8e7164c8b812f18fa52952ba20d381ada8b/fontdump-1.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "aa94618ad93b2d05b4110b9a390d8651", "sha256": "568f196d24e7b39256739baa4ef3064fab2b843c41cd4fa40ee7e463c624c232" }, "downloads": -1, "filename": "fontdump-1.3.0.tar.gz", "has_sig": false, "md5_digest": "aa94618ad93b2d05b4110b9a390d8651", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6800, "upload_time": "2014-11-21T04:01:31", "url": "https://files.pythonhosted.org/packages/ef/f5/0d370a3b4053da0cbf61d417cbe4576ecfe19d4c5677ca78028570de347a/fontdump-1.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f0c186b4198a2bc3b6c1276c18eecc12", "sha256": "39431cc485eadf76085a69c3272bcef943f7916737a8586aa941b7f4d14c04ff" }, "downloads": -1, "filename": "fontdump-1.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f0c186b4198a2bc3b6c1276c18eecc12", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8253, "upload_time": "2014-11-21T04:01:40", "url": "https://files.pythonhosted.org/packages/0f/c9/7a10f41284a9ab243e4b6170f8e7164c8b812f18fa52952ba20d381ada8b/fontdump-1.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "aa94618ad93b2d05b4110b9a390d8651", "sha256": "568f196d24e7b39256739baa4ef3064fab2b843c41cd4fa40ee7e463c624c232" }, "downloads": -1, "filename": "fontdump-1.3.0.tar.gz", "has_sig": false, "md5_digest": "aa94618ad93b2d05b4110b9a390d8651", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6800, "upload_time": "2014-11-21T04:01:31", "url": "https://files.pythonhosted.org/packages/ef/f5/0d370a3b4053da0cbf61d417cbe4576ecfe19d4c5677ca78028570de347a/fontdump-1.3.0.tar.gz" } ] }