Re: [pygtk] Label a different font sizes

2008-04-19 Thread Vláďa
I¨m using 2.10.6 on Windows. I will update to 2.12, anyway I know already know that the problem is caused by to small numbers for font size. But it's strange that setting size=14 produces similar result as font-size: 14px in HTML/CSS. This is what confused me. So the first 2 lines are on my

Re: [pygtk] Label a different font sizes

2008-04-19 Thread John Finlay
Vláďa wrote: I¨m using 2.10.6 on Windows. I will update to 2.12, anyway I know already know that the problem is caused by to small numbers for font size. But it's strange that setting size=14 produces similar result as font-size: 14px in HTML/CSS. This is what confused me. So the first 2

Re: [pygtk] Label a different font sizes

2008-04-18 Thread Neil Dugan
Vláďa wrote: Thank you for your reply. I know I have to use set_use_markup(True). All of the Pango markup attributes work for me except of font size. At the top of the page you are referring there is an example: span foreground=blue size=100Blue text/span So I think my code is correct. The

Re: [pygtk] Label a different font sizes

2008-04-17 Thread Vláďa
Thank you for your reply. I know I have to use set_use_markup(True). All of the Pango markup attributes work for me except of font size. At the top of the page you are referring there is an example: span foreground=blue size=100Blue text/span So I think my code is correct. The problem is,

Re: [pygtk] Label a different font sizes

2008-04-17 Thread John Finlay
Vláďa wrote: So I think my code is correct. The problem is, that the first value (size=14) in my example is also used for the second line, although I specified new size (size=10). The strange thing is that if I use attributes like large or small then it works. Unfortunately my English is

[pygtk] Label a different font sizes

2008-04-16 Thread Vláďa
Hi, I have a question regarding labels and Pango. I want to use different sizes of font, but unfortunately it doesn't work. If I use self.label = gtk.Label('span size=14Text 1/span\nspan size=10Text 2/span') then only the first size definition (14) is taken into account. The second line

Re: [pygtk] Label a different font sizes

2008-04-16 Thread John Finlay
Vláďa wrote: Hi, I have a question regarding labels and Pango. I want to use different sizes of font, but unfortunately it doesn't work. If I use self.label = gtk.Label('span size=14Text 1/span\nspan size=10Text 2/span') then only the first size definition (14) is taken into account. The