Skip to content

Add binding for LoadFontFromMemory#153

Closed
ricmatsui wants to merge 1 commit intodeltaphc:masterfrom
ricmatsui:font-from-memory
Closed

Add binding for LoadFontFromMemory#153
ricmatsui wants to merge 1 commit intodeltaphc:masterfrom
ricmatsui:font-from-memory

Conversation

@ricmatsui
Copy link

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

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

@Klebestreifen
Copy link

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.

@IoIxD
Copy link
Contributor

IoIxD commented Jan 13, 2024

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
Copy link
Contributor

IoIxD commented Jan 31, 2024

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

@dmgolembiowski
Copy link

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?

Dacode45 pushed a commit that referenced this pull request Jun 26, 2025
@ricmatsui ricmatsui closed this Oct 30, 2025
@ricmatsui ricmatsui deleted the font-from-memory branch October 30, 2025 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Load Font From Memory (make better documentation)

4 participants