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.
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. 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.
Darius
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives