{"id":22018945,"url":"https://github.com/nobodxbodon/web-fonts-generator-service","last_synced_at":"2025-05-07T03:28:55.107Z","repository":{"id":16258753,"uuid":"19006820","full_name":"nobodxbodon/Web-Fonts-Generator-Service","owner":"nobodxbodon","description":"web font生成器：based on TTFRender, gulp-ttf2woff, and NodeJS. 简化中文字体定制。","archived":false,"fork":false,"pushed_at":"2014-08-28T06:53:33.000Z","size":184,"stargazers_count":27,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T05:51:11.488Z","etag":null,"topics":["gulp","nodejs","ttf","web-fonts","woff"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nobodxbodon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-21T20:59:12.000Z","updated_at":"2023-08-26T12:12:49.000Z","dependencies_parsed_at":"2022-09-10T17:21:49.254Z","dependency_job_id":null,"html_url":"https://github.com/nobodxbodon/Web-Fonts-Generator-Service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nobodxbodon%2FWeb-Fonts-Generator-Service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nobodxbodon%2FWeb-Fonts-Generator-Service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nobodxbodon%2FWeb-Fonts-Generator-Service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nobodxbodon%2FWeb-Fonts-Generator-Service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nobodxbodon","download_url":"https://codeload.github.com/nobodxbodon/Web-Fonts-Generator-Service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252806183,"owners_count":21807165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gulp","nodejs","ttf","web-fonts","woff"],"created_at":"2024-11-30T05:14:47.829Z","updated_at":"2025-05-07T03:28:55.088Z","avatar_url":"https://github.com/nobodxbodon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"woff资源生成器\n===========================\n\nwoff generator：based on TTFRender, gulp-ttf2woff, and NodeJS. 简化中文字体定制。\n\n中文字体文件过大导致web font文件最好限于需要美化的部分。详见:\nhttps://github.com/wangxiaomo/TTFRender\n\n#### 依赖：\n\n```\nPython 2.7+ (2.7.3 for me)\nNodeJS (0.10.26 for me)\n```\n\n安装gulp\n```\nnpm install -g gulp\n\n```\n安装fontforge. 仅在ubuntu 12.04成功，Mac无果(http://stackoverflow.com/questions/9964284/fontforge-python-bindings-with-macports?noredirect=1#comment35450979_9964284)：\n```\n$ sudo apt-get install fontforge python-fontforge\n```\n\n#### 使用\n$ npm install\n启动NodeJS服务:\n```\n$ node server.js\n```\n访问：\n```\nlocalhost:3000\n```\n上传内容文件（需纯文本，若有编码问题请提issue）、ttf文件。生成woff文件（下载文件名为download,请自行改名），即可在css中引用：\n\n```\n@font-face\n{\nfont-family: myFirstFont;\nsrc: url('generated.woff');\n}\n\ndiv\n{\nfont-family:myFirstFont;\n}\n\n```\n\n#### 生成woff文件大小\n生成woff约1k/字，根据ttf字体文件大小有别\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnobodxbodon%2Fweb-fonts-generator-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnobodxbodon%2Fweb-fonts-generator-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnobodxbodon%2Fweb-fonts-generator-service/lists"}