chrisdill/raylib-cs

[Feature Request] Safe pathway to LoadFontFromMemory

AITYunivers opened this issue · 4 comments

Feature Request

I would appreciate it if LoadFontFromMemory had a function that could be used in safe applications, similar to LoadImageFromMemory.

Code example

Raylib.LoadFontFromMemory(".ttf", FontData, 12, FontCount, GlyphCount);

@AITYunivers There is an existing utility for LoadFontFromMemory that should handle this for you.

@chrisdill Could you point me in the direction?

@AITYunivers Sure. You can find the utility method for it here.

Sorry, I don't know how the hell I missed that. My bad.