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
Hello, I was trying to use the load_font_ex function in raylibpy but I get an error related to the "codepoints" argument. It doesn´t matter if I try to put a 0, an empty list or None as values, it doesn´t work. I know this python raylib binding development may not be active anymore but I would like to know if this is a common issue and I should stuck with the load_font() function, at the cost of having pixelated fonts or finding a long and uncomfortable alternative to scale fonts properly.
Using the latest version of the Raylib-py version, Python 3.11 and VSCode.
I am including the basic error message when I use the None as an argument and my script.
Error:
importraylibpyasrl# Initialize windowrl.init_window(800, 600, "Load Font Example")
rl.set_target_fps(60)
# Font parametersfont_size=32font_file="fonts/AntonSC-Regular.ttf"# Replace with the path to your font file# Load fontfont=rl.load_font_ex(font_file, font_size, None, 0)
# Main loopwhilenotrl.window_should_close():
rl.begin_drawing()
rl.clear_background(rl.RAYWHITE)
# Draw text using the loaded fontrl.draw_text_ex(font, "Hello, raylib!", (100, 100), font_size, 1, rl.DARKGRAY)
rl.end_drawing()
# Unload font and close windowrl.unload_font(font)
rl.close_window()
The text was updated successfully, but these errors were encountered:
Hello, I was trying to use the load_font_ex function in raylibpy but I get an error related to the "codepoints" argument. It doesn´t matter if I try to put a 0, an empty list or None as values, it doesn´t work. I know this python raylib binding development may not be active anymore but I would like to know if this is a common issue and I should stuck with the load_font() function, at the cost of having pixelated fonts or finding a long and uncomfortable alternative to scale fonts properly.
Using the latest version of the Raylib-py version, Python 3.11 and VSCode.
I am including the basic error message when I use the None as an argument and my script.
Error:
The text was updated successfully, but these errors were encountered: