macroquad icon indicating copy to clipboard operation
macroquad copied to clipboard

StyleBuilder `font` method takes u8 slice instead of Font

Open highwaycoder opened this issue 2 years ago • 1 comments

Not sure why this method doesn't take a Font, but presumably fixing it now would be tricky as it would break backwards compatibility.

Is there a scope for adding a new method, which accepts an actual Font rather than a u8 slice? I'm loading and managing my own fonts using a simple asset manager I built, and the Font struct has no way of converting itself back into TTF bytes for loading into a style using a StyleBuilder.

Happy to do the work myself and submit a PR, just let me know which direction is preferred or if this work is not going to be accepted in any form (if there's something I'm missing and there's a good reason for it being the way it is) so I don't waste my time.

highwaycoder avatar Dec 02 '23 13:12 highwaycoder

#758 fixes this issue.

cyrgani avatar Jul 13 '24 20:07 cyrgani