You are not logged in.

#1 2011-07-23 23:58:55

jeff story
Member
Registered: 2009-05-31
Posts: 237
Website

Python2 How To .........? [SOLVED]

I'd like to change the font to bold.

I'm sure this is very simple for python users, however I'm not, and guessed at a few changes that didn't work.


self.draw_text(ctx, self.myip,0,10, 'FreeSans',15,self.width,allignment = pango.ALIGN_CENTER)

Thanks in advance!

Last edited by jeff story (2011-07-24 00:29:03)


Check out my website for info on the Arch Linux Installer

Offline

#2 2011-07-24 00:12:08

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Python2 How To .........? [SOLVED]

Last time I dealt with fonts, we had a different font for normal, bold and italic. How about trying a bold font?

EDIT: Okay, forget that, it's late and I need sleep...

Last edited by Awebb (2011-07-24 00:13:11)

Offline

#3 2011-07-24 00:27:56

jeff story
Member
Registered: 2009-05-31
Posts: 237
Website

Re: Python2 How To .........? [SOLVED]

Thanks Awebb,

I didn't try changing the font type. That did it.

I tried Arial Black, but that looked too bold. Changing to regular Arial looks pretty good.

self.draw_text(ctx, self.myip,0,10, 'Arial' ,16 ,self.width,allignment = pango.ALIGN_CENTER)

Check out my website for info on the Arch Linux Installer

Offline

Board footer

Powered by FluxBB