Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Changing font with Canvas.text style_args?

I'm trying to display a Text object on a Canvas in Verdana. I think that the correct way to do this is the style_args argument, but I'm struggling to find an example of that in the documentation. I would be very happy to be pointed in the right direction!

What I've got is:


my_canvas = Canvas()
my_canvas['text'] = Text('Verdana?', 
                                y = instruction_start_y, 
                                style_args = {'font_family' : 'verdana', 'font_size' : 30})
my_canvas.show()

But it doesn't have the effect that I want.

Comments

Sign In or Register to comment.