Open galaxyZ2 opened 1 year ago
I am not sure if in the graphics.DrawText() font needs to be mentioned or font_path, neither of them have possitive effect on the outcome.
font_path = graphics.Font()
font_path = graphics.Font()
I am now trying to create a font variable as follows then load that, but to no avail. :(
font_path = os.path.join(font_dir, fonttype)
font = graphics.Font(font_path)
font.LoadFont(font)
graphics.DrawText(canvas, font, x, y, color, message)
font_path = os.path.join(font_dir, fonttype) # string with path font = graphics.Font(); # empty Font object font.LoadFont(font_path ) # load font file into font object graphics.DrawText(canvas, font, x, y, color, message)
Got it working, thank you for your help! I also had bad reference in the html.
Hello Everyone!
Please allow me another question I am fighting for quite a bit. I have a flask app, and the webpage prompts the user to choose a font type.
Then the Display form is as follows:
Until this point everything works as expected, the SelectField is populated with the choices. After this I have my def:
There is no exception thrown on the server side, but the text is not drawn, my thinking is that the font is not loaded correctly.
Could you point out my issue here?