{"id":19014251,"url":"https://github.com/spritejs/sprite-extend-bmfont","last_synced_at":"2025-10-10T08:09:44.116Z","repository":{"id":87731579,"uuid":"139300759","full_name":"spritejs/sprite-extend-bmfont","owner":"spritejs","description":null,"archived":false,"fork":false,"pushed_at":"2018-08-03T04:02:27.000Z","size":586,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-21T16:48:10.661Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/spritejs.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-01T04:40:52.000Z","updated_at":"2019-01-17T06:58:21.000Z","dependencies_parsed_at":"2023-04-11T04:34:20.970Z","dependency_job_id":null,"html_url":"https://github.com/spritejs/sprite-extend-bmfont","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/spritejs/sprite-extend-bmfont","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spritejs%2Fsprite-extend-bmfont","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spritejs%2Fsprite-extend-bmfont/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spritejs%2Fsprite-extend-bmfont/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spritejs%2Fsprite-extend-bmfont/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spritejs","download_url":"https://codeload.github.com/spritejs/sprite-extend-bmfont/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spritejs%2Fsprite-extend-bmfont/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003294,"owners_count":26083555,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-08T19:28:34.885Z","updated_at":"2025-10-10T08:09:44.087Z","avatar_url":"https://github.com/spritejs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sprite-extend-bmFont\n\nSpriteJS [bmGlyph](https://www.bmglyph.com/) BitmapFont extend.\n\n## How to use\n\nUse [bmGlyph](https://www.bmglyph.com/) to publish BitMap font.\n\n![bmGlyph](https://p1.ssl.qhimg.com/t01250012696697463d.png)\n\nChoose publish format cocos2d/BMFont.\n\nUse `tools/generate.js` to generate bmfont file for SpriteJS\n\n```bash\nnode tools/generate.js fonts/testsprite.fnt\n```\n\n```html\n  \u003cscript src=\"https://unpkg.com/spritejs/dist/spritejs.min.js\"\u003e\u003c/script\u003e\n  \u003cscript src=\"https://s4.ssl.qhres.com/!d41bc226/sprite-extend-bmfont.js\"\u003e\u003c/script\u003e\n  \u003cscript src=\"/js/sprite.fnt.js\"\u003e\u003c/script\u003e\n  \u003cscript\u003e\n    const context = document.getElementById('container').getContext('2d')\n    const {Layer, BMFont, Label} = spritejs\n\n    const layer = new Layer({context})\n    const s = new BMFont()\n    s.attr({\n      anchor: 0.5,\n      fontFace: 'Arial',\n      text: 'SpriteJS\\nabVu',\n      pos: [300, 200],\n      border: {\n        width: 4,\n        color: 'red',\n      },\n      // lineHeight: 30,\n      // letterSpacing: 20,\n      textAlign: 'center',\n    })\n    layer.append(s)\n  \u003c/script\u003e\n```\n\n### Arguments of generate.js\n\n** build for weixin **\n\n```bash\nnode generate.js fonts/testsprite.fnt --weixin\n```\n\nCopy testsprite.png to `/assets/img/testsprite.png`\n\n** build with online texture **\n\n```bash\nnode generate.js fonts/testsprite.fnt --src=https://p4.ssl.qhimg.com/t016ec624e084e49c16.png\n```\n\n** build with preload resource id **\n\n```bash\nnode generate.js fonts/testsprite.fnt --id=testsprite.png\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspritejs%2Fsprite-extend-bmfont","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspritejs%2Fsprite-extend-bmfont","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspritejs%2Fsprite-extend-bmfont/lists"}