{"id":13464342,"url":"https://github.com/fontello/svg2ttf","last_synced_at":"2025-04-14T01:07:44.331Z","repository":{"id":44929350,"uuid":"10447903","full_name":"fontello/svg2ttf","owner":"fontello","description":"SVG -\u003e TTF font convertor","archived":false,"fork":false,"pushed_at":"2021-11-19T13:03:41.000Z","size":387,"stargazers_count":532,"open_issues_count":8,"forks_count":80,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-14T01:07:22.947Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fontello.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"open_collective":"puzrin","patreon":"puzrin","tidelift":"npm/svg2ttf"}},"created_at":"2013-06-03T05:42:15.000Z","updated_at":"2025-03-25T16:46:45.000Z","dependencies_parsed_at":"2022-09-05T17:00:25.491Z","dependency_job_id":null,"html_url":"https://github.com/fontello/svg2ttf","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fontello%2Fsvg2ttf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fontello%2Fsvg2ttf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fontello%2Fsvg2ttf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fontello%2Fsvg2ttf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fontello","download_url":"https://codeload.github.com/fontello/svg2ttf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248804803,"owners_count":21164134,"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":[],"created_at":"2024-07-31T14:00:40.915Z","updated_at":"2025-04-14T01:07:44.306Z","avatar_url":"https://github.com/fontello.png","language":"JavaScript","readme":"svg2ttf\n=======\n\n[![CI](https://github.com/fontello/svg2ttf/actions/workflows/ci.yml/badge.svg)](https://github.com/fontello/svg2ttf/actions/workflows/ci.yml)\n[![NPM version](https://img.shields.io/npm/v/svg2ttf.svg?style=flat)](https://www.npmjs.org/package/svg2ttf)\n\n\u003e Converts SVG fonts to TTF format. It was initially written for\n[Fontello](http://fontello.com), but you can find it useful for your projects.\n\n__For developpers:__\n\nInternal API is similar to FontForge's one. Since primary goal\nis generating iconic fonts, sources can lack some specific TTF/OTF features,\nlike kerning and so on. Anyway, current code is a good base for development,\nbecause it will save you tons of hours to implement correct writing \u0026 optimizing\nTTF tables.\n\n\nUsing from CLI\n----------------\n\nInstall:\n\n``` bash\nnpm install -g svg2ttf\n```\n\nUsage example:\n\n``` bash\nsvg2ttf fontello.svg fontello.ttf\n```\n\n\nAPI\n---\n\n### svg2ttf(svgFontString, options) -\u003e buf\n\n- `svgFontString` - SVG font content\n- `options`\n  - `copyright` - copyright string (optional)\n  - `description` - description string (optional)\n  - `ts` - Unix timestamp (in seconds) to override creation time (optional)\n  - `url` - manufacturer url (optional)\n  - `version` - font version string, can be `Version x.y` or `x.y`.\n- `buf` - internal [byte buffer](https://github.com/fontello/microbuffer)\n   object, similar to DataView. It's `buffer` property is  `Uin8Array` or `Array`\n   with ttf content.\n\nExample:\n\n``` javascript\nvar fs = require('fs');\nvar svg2ttf = require('svg2ttf');\n\nvar ttf = svg2ttf(fs.readFileSync('myfont.svg', 'utf8'), {});\nfs.writeFileSync('myfont.ttf', new Buffer(ttf.buffer));\n```\n\n\n## svg2ttf for enterprise\n\nAvailable as part of the Tidelift Subscription.\n\nThe maintainers of `svg2ttf` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-svg2ttf?utm_source=npm-svg2ttf\u0026utm_medium=referral\u0026utm_campaign=enterprise\u0026utm_term=repo)\n","funding_links":["https://opencollective.com/puzrin","https://patreon.com/puzrin","https://tidelift.com/funding/github/npm/svg2ttf","https://tidelift.com/subscription/pkg/npm-svg2ttf?utm_source=npm-svg2ttf\u0026utm_medium=referral\u0026utm_campaign=enterprise\u0026utm_term=repo"],"categories":["Uncategorized","Repository","JavaScript"],"sub_categories":["Uncategorized","Font"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffontello%2Fsvg2ttf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffontello%2Fsvg2ttf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffontello%2Fsvg2ttf/lists"}