{"id":15722675,"url":"https://github.com/subsoap/defold-bmfont-example","last_synced_at":"2025-03-30T23:43:47.576Z","repository":{"id":71235454,"uuid":"127368730","full_name":"subsoap/defold-bmfont-example","owner":"subsoap","description":"Defold BMFont example","archived":false,"fork":false,"pushed_at":"2018-03-30T03:58:58.000Z","size":134,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T23:43:48.298Z","etag":null,"topics":["defold","defold-game-engine"],"latest_commit_sha":null,"homepage":null,"language":"GLSL","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/subsoap.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-03-30T02:02:57.000Z","updated_at":"2019-02-24T18:46:21.000Z","dependencies_parsed_at":"2023-02-28T01:01:13.484Z","dependency_job_id":null,"html_url":"https://github.com/subsoap/defold-bmfont-example","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/subsoap%2Fdefold-bmfont-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subsoap%2Fdefold-bmfont-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subsoap%2Fdefold-bmfont-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subsoap%2Fdefold-bmfont-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subsoap","download_url":"https://codeload.github.com/subsoap/defold-bmfont-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246395572,"owners_count":20770240,"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":["defold","defold-game-engine"],"created_at":"2024-10-03T22:08:51.856Z","updated_at":"2025-03-30T23:43:47.549Z","avatar_url":"https://github.com/subsoap.png","language":"GLSL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BMFont example\n\nThis shows general setup for using BMFont generated fonts.\n\nhttp://www.angelcode.com/products/bmfont/\n\nYou must make sure the exported texture is large enough to fit all glyphs as Defold doesn't support paged textures for fonts. Also check to see how much extra space you have in your texture and pick a smaller size. The width/height should be powers of 2, but they do not have to be an even size. You could have a texture 1024x256 for example.\n\nIf you change the texture of the bmfont export you must swap fonts in the .font file to see it update in engine. (This bug has been reported.)\n\nYou can customize the look of your fonts more by making copies of the font materials and using them instead. In the demo, the label in main.collection has a redish color, but because the custom material ignores this it only draws the actual texture of the font. The custom material does still use the alpha of the color so you could test changing that to see.\n\nThe materials you are looking for have a fnt at the end.\n\nIf you want some text effects you'll need to add extra padding to add enough area around each font glyph.\n\nIf you want to use BMFont for counters then you may want to make small fonts with only numeric glyphs and then enable \"Equalize the cell heights\" / \"Force offsets to zero\" in the Export Options. Otherwise your counters may look odd as they increase / decrease. Make sure you position at pixel perfect positions when using pixel fonts. Experiment and see what works.\n\n![](bmfont_export_options.png)\n\n![](example.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubsoap%2Fdefold-bmfont-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubsoap%2Fdefold-bmfont-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubsoap%2Fdefold-bmfont-example/lists"}