[MonoDevelop] Changing font on a label

Chris Howie cdhowie at gmail.com
Tue Jan 22 20:33:57 EST 2008


On Jan 22, 2008 8:23 PM, Darwin Reynoso <monouser at gmail.com> wrote:
> Hi,
> can somebody help i need to change the  font on a label using
> monodevelop on stetic but i don't know how
> to accomplish this.

I would think very hard before doing something like that.  The short
answer is that you can, but you shouldn't.  The desktop environment
and, by extension, user should be in charge of that, not you.
Changing the font /size/ or /style/ (bold, italic, underline, etc) is
less of an issue.  But I really wouldn't be using fonts that the user
may not want and may not even exist on their system.

If there is a specific reason you need to (like a label intended to
preview fonts, or something) or if you have decided to steamroll the
user's preferences (but first write out "I'm doing something evil" 100
times) then have a look at
<http://library.gnome.org/devel/pango/unstable/PangoMarkupFormat.html>.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers


More information about the Monodevelop-list mailing list