Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add binding for LoadFontFromMemory #153

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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?

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