On Thu, 06 Sep 2007 20:32:25 +0200
Darius Blaszijk <[EMAIL PROTECTED]> wrote:

> Marc Weustink wrote:
> > Darius Blaszijk wrote:
> >> When I set the font of a canvas to fsBold, it gives a bold
> >> appearance on win32. On gtk it does not. Is this font specific
> >> behavior, or widgetset specific?
> >
> > Widgetset specific. A bold version of your forn needs to be
> > available.
> So what is it then? Widgetset or font. Afaict you say it's both.

Not all fonts have a bold version. And gtk1 is not smart enough to
emulate it. You could workaround it in the widgetset or by using other
fonts or by using gtk2/pango ...


> >> Also the textheight on windows and gtk is different. On Windows I
> >> see a nice spacing between two consecutive lines, on gtk the lines
> >> seem to overlap. What is the way to handle this behavior?
> >
> > On gtk you get the nearest size of the forn you request, it may be 
> > larger than asked.
> >
> So why does this produce overlapping text then? I did not get the
> proper size of the text using TextHeight, but about half the size. 

AFAIR this once worked properly. But maybe it worked only with those
fonts I tested.


> I
> could imagine if the spacing is dense, but this is terrible. More
> important, how can I manage this in a proper way? I just want to know
> the textheight of a string on the canvas.


Mattias

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

Reply via email to