SDF Font Support

Open
#366 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
cpp

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.

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?

Dominant language
C++
Stars
960
Forks
120
Avg merge
10m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RobLoach/raylib-cpp

All issues in RobLoach/raylib-cpp

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.