Hi,

When you say 'default font' do you mean the one that is selected as the font
of the TLabel or TStaticText when it is created, and that this font is
different from other font objects (in that it does not support size and
style yet)?

I am ok with that. My main problem is that it is unnecessarily difficult to
change the font. When I try to change the font by clicking on the '...'
button to open the Font Dialog, in gtk no font is selected by default, so I
need to find the right font first - but some platforms may have different
fonts by default. In gtk2 the font dialog does have a font selected by
default (yay), but alas, when I make my changes and click on OK I get an
access violation or something.

Now that I think about it more I think even if the font dialog sets the
correct font when it opens, it will still not be "platform independent", so
I think I understand the problem a bit better... It will still make life a
wee easier though. :-)

What is the best way then to make a piece of static text be in bold or a
different size?

Thanks.
Charl

On 2/20/07, Mattias Gaertner <[EMAIL PROTECTED]> wrote:

On Fri, 16 Feb 2007 08:37:25 +0200
"Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote:

> I use Gtk1 and can't get Bold to work on any TLabel either. I'm using
> the latest Lazarus (svn) and FPC 2.1.1 (svn).

The 'default' font does not support size and style yet.


Mattias


>
> Graeme.
>
>
> On 2/15/07, Charl van Jaarsveldt <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I am trying to get either TLabel or TStaticText to be bold, or just
> > bigger (either or both). I tried setting the Font - Style property
> > in the Object Inspector to get it bold, but it doesn't work.  To
> > get it bigger I tried changing the size and height properties for
> > the font, but it does not work either. (Side Note, what's the
> > difference between Size and Height?). I was running in Gtk2, and I
> > remember I saw something on the roadmap or current status about
> > TFont not working properly in gtk2, so I recompiled to gtk, but the
> > problem persists.
> >
> > I can edit the font by getting the font dialog up and doing it all
> > in there. The only thing is I have to try and find out what the
> > current font is because I don't necessarily want to change the font
> > itself. If I try to just change the size in the font dialog and
> > click on OK, I get an access violation.
> >
> > Please help.
> >
> > Thank you
> > Charl
> >
> > --
> > "I love deadlines. I especially love the whooshing sound they make
> > as they fly by." - Douglas Adams
>
>

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives




--
"I love deadlines. I especially love the whooshing sound they make as they
fly by." - Douglas Adams

Reply via email to