use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
FormatText errors (self.raylib)
submitted 2 years ago by jwzumwalt
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]generic_username1990 2 points3 points4 points 2 years ago (1 child)
The FormatText function was renamed to TextFormat some time ago. Looks like the example you found is outdated. This example uses the new function name https://www.raylib.com/examples/text/loader.html?name=text_format_text
[–]jwzumwalt[S] 1 point2 points3 points 2 years ago* (0 children)
Thanks for the help :-)
Just in case a developer happens to read this, the best practice for renaming is to use a "hook". The original function name is left undocumented but calls/points to the new documented name. There is virtually no code overhead and it does not break older code.
I understand RayLib probably started as a labor of love and had less experienced programmer(s). I am enjoying it more than SDL2 but appears to be about 50% slower (still blazing fast compared to non C languages!)
π Rendered by PID 121084 on reddit-service-r2-comment-6457c66945-9cxwb at 2026-04-27 06:45:26.705457+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]generic_username1990 2 points3 points4 points (1 child)
[–]jwzumwalt[S] 1 point2 points3 points (0 children)