Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[text] Add line-break support to DrawText() #44

Closed
raysan5 opened this issue Sep 5, 2015 · 3 comments
Closed

[text] Add line-break support to DrawText() #44

raysan5 opened this issue Sep 5, 2015 · 3 comments
Assignees
Labels
enhancement This is an improvement of some feature
Milestone

Comments

@raysan5
Copy link
Owner

raysan5 commented Sep 5, 2015

When drawing text, it will be very useful to be able to add line-breaks \n.

Related functions [text.c]:

void DrawTextEx(SpriteFont spriteFont, const char *text, Vector2 position, int fontSize, int spacing, Color tint);

Just add a font-size-proportional Y-position increment and reset X-position value when character \n is parsed.

@raysan5 raysan5 added the enhancement This is an improvement of some feature label Sep 5, 2015
@raysan5 raysan5 modified the milestone: raylib v1.4 Sep 5, 2015
@raysan5 raysan5 self-assigned this Oct 21, 2015
@raysan5
Copy link
Owner Author

raysan5 commented Oct 21, 2015

Added feature on commit f13b30d

@differenceclouds
Copy link

It seems the line-height is 1.5 times the font size. Maybe it would be nice to be able to change this?

@raysan5
Copy link
Owner Author

raysan5 commented Jun 27, 2023

I'm already looking for the best approach...

michaelfiber pushed a commit to michaelfiber/raylib that referenced this issue Sep 21, 2023
Update Lua binding to a maintained LuaJIT binding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is an improvement of some feature
Projects
None yet
Development

No branches or pull requests

2 participants