Problems with bitmap fonts with pixel identical glyphs
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 25.4k
- Forks
- 6.5k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 5
Description
I stumbled upon the following minor issue regarding fonts in libGDX 1.6.5:
I created a bitmap font file with Hiero where 0 and O happen to be pixel identical. It seems to be a feature of the fnt format to not include these glyphs twice in that case. The loader of BitmapFont does not recognize this optimization and therefore 0 characters are not rendered.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the BitmapFont loader and the Hiero-generated .fnt format described in the report. Reproduce a font where 0 and O are pixel-identical, then verify that both characters render correctly when the loader handles the format's glyph optimization.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100