raylib-rs icon indicating copy to clipboard operation
raylib-rs copied to clipboard

Add binding for `LoadFontFromMemory`

Open ricmatsui opened this issue 1 year ago • 4 comments

Adding binding for LoadFontFromMemory as RaylibHandle::load_font_from_memory. Closes #107

https://github.com/raysan5/raylib/blob/4fd1e04e706bdf290377b7b29d2706fa5954afb1/src/rtext.c#L494-L495

ricmatsui avatar Mar 11 '23 23:03 ricmatsui

The problem was on my side. As far as I know, the raylib documentation states that the string must be ".ttf". So with a dot and in lower case. I have already closed #107, as this error was pointed out there.

Klebestreifen avatar Jan 13 '24 16:01 Klebestreifen

This PR should be redone for to the fork mentioned in the README, branch 5.1.0, bevause thats the one thats currently being developed.

IoIxD avatar Jan 13 '24 22:01 IoIxD

Redid it myself. https://github.com/raylib-rs/raylib-rs/

IoIxD avatar Jan 31 '24 18:01 IoIxD

Redid it myself. https://github.com/raylib-rs/raylib-rs/

Thanks @IoIxD, I've been pinning my project on your fork. Until today, I've been running:

[dependencies.raylib]
git = "https://github.com/IoIxD/raylib-rs"
branch = "update-useable-fork"

because of its Texture2D and Image support. Although, Image::load_image_from_mem has never worked for me. Runtime image loading works fine when you supply a path, but otherwise not.

Could you take a look at my comment about your merge from yesterday?

dmgolembiowski avatar Feb 02 '24 00:02 dmgolembiowski