Re: Gtk::Label and proportional font[solved]



Isenmann Daniel schrieb:
> Marco Scholten schrieb:
> 
>>>Hi,
>>>
>>>how can I set a proportional font in a Gtk::Label?
>>>
>>>Is this possible?
>>>
>>>I will write a text and i need a proportional font, because of the
>>>spaces between the characters. When I use the normal font, there will be
>>>more space for _ than - (example).
>>>
>>>So, how can I use proportional font. It must be proportional, if the
>>>user change the font in his config, the font in my app must be the same
>>>as I set it.
>>>
>>>Can anyone help me??
>>>
>>>Thanks, Daniel
>>
>>
>>Don't you mean a monospaced font?
>>Anyway, you can set the font of your label with Gtk::Label::modify_font().
>>
>>
> 
> 
> Yes, you are right, I mean monospaced fonts.
> 
> I can't find a description of the function in the API-Documentation. How
> can I modify the font? Can you give me an example, please?
> 
> My Gtk::Label is called game.
> 
> My compiler prints an error: no matching function for call to
> `Gtk::Lable::modify_font(...)'
> 
> Thanks,
> 
> Daniel
> 
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
> 

I should read the doumentation a little bit better. I found the right
function.....

Thanks anyway,

Daniel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]