Make draw_character()
and character_advance()
available to users
#775
Labels
enhancement
New feature or request
Hi! I'm writing a custom text input, so i need to constantly calculate the size of the text that user enters
Using basic
draw_text()
andmeasure_text()
may be quite slow, because it calculates the size for the whole text.I used slices to calculate the size of the string/text from the beginning to the cursor position, but it also slows down my game!
I want to implement something like this in
text.rs
module:Also i would like
draw_text()
anddraw_text_ex()
to returnTextDimensions
, because they have already been calculated, so we don't need to recalculate them againWant to hear what you think about it :)
The text was updated successfully, but these errors were encountered: