Hi guys,
I try to run the text.py in fos/examples to display a text.
But it is not stable. Some time, it works well, sometime, the error "ValueError: operands could not be broadcast together with shapes" appears.
For example, when I try
tex = Text3D( "Text3D", vert, "Reg", 10, 2, ptr) --> work well
but with
tex = Text3D( "Text3D", vert, "Right", 10, 2, ptr) --> ValueError
the error exactly comes from the file fos/actor/text.py at the command line Z[y:y+h,x:x+w] |= np.array(bitmap.buffer).reshape(h,w).
The error is about the shapes (0,34) (73,34) (0,34), so it can not reshape.
After trying many time, I found that only some words ending with 'g' character, the program runs well.
Is there anyone can suggest me some clues for fixing it?
Thank you for your help.
Best,
Thien Bao
--
Nguyen Thien Bao