You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all thanks to the maintainers for the effort.
I believe I've found a bug, I'm testing BitmapFont and I've been able to render text doing this:
I've tested this on a fork I've made and by doing so I've been able to get no exception and a SoftwareSprite instance back from the render method so I've opened a PR.
The text was updated successfully, but these errors were encountered:
First of all thanks to the maintainers for the effort.
I believe I've found a bug, I'm testing BitmapFont and I've been able to render text doing this:
so, I create the bitmap font and I'm able to render text using
render_on
.However, I would like to create a new Sprite for my text, and by reading the documentation I think the way to do it would be just simply doing:
But I get an exception stating
surface must be a SDL_Surface
. Is it a bug or am I misunderstanding anything?I've done some debugging and tracking the origin of the error on these lines.
Apparently even tho
sf
is an instance of:sdl2.surface.LP_SDL_Surface
it seems not to be a valid first parameter forSoftwareSprite
.Also based mainly on this answer on stack overflow, it seems
.contents
is missing like:I've tested this on a fork I've made and by doing so I've been able to get no exception and a
SoftwareSprite
instance back from therender
method so I've opened a PR.The text was updated successfully, but these errors were encountered: