RobLoach / RobLoach/raylib-cpp
SDF Font Support
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 960
- Forks
- 120
- Avg merge
- 10m
- Merged PRs (30d)
- 1
Description
The go-to way to render text at variable sizes with Raylib is to use SDF Font generation, see the following raylib example: https://www.raylib.com/examples/text/loader.html?name=text_font_sdf
There are no c++ bindings to load in a font in this way (for example, no LoadFontData bindings passing in a non-default font type / GenImageFontAtlas bindings AFAIK). Any chance these could be added?
Contributor guide
No contributing guide indexed for this repository
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 with the raylib text_font_sdf example, then inspect the C++ bindings for LoadFontData and GenImageFontAtlas. Add support for passing a non-default font type to these APIs, and verify that the SDF font loading flow is available through the wrapper.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100