Page 1 of 1

Question about Font Size, Delphi7 / Kylix3

Posted: Thu Oct 08, 2009 9:55 am
by 9341766
Hi,

I'm Using TeeChart 7 Pro.

My client application, on windows, allow to set chart properties.
Next, charts are rendered by my server application (on windows or on Linux using a X server : xvfb).

When Charts are rendered on windows no matter, but when they are rendered on Linux, I encountered a problem with Fonts Size.
This problem appears whatever Fonts name or Style I use, but only with Font.Size = 8

This image illustrate my talk :
Image

I suspect this problem not directly depends on Teechart, but rather to differences beetwen Graphics.TFont and QGraphics.TFont.

Did you already encounter this problem or have you an idea to skirt it ?

Thanks.

Re: Question about Font Size, Delphi7 / Kylix3

Posted: Thu Oct 22, 2009 3:16 pm
by 9341766
Hi,

for those who will encounter my problem one day, I post the solution I've found.

In TeeConst.pas :
TeeMsg_DefaultFontSize :={$IFDEF LINUX}'10'{$ELSE}'8'{$ENDIF};

When storing chart under windows, if (font.size=8), property is not stored, because := default
When loading chart under Linux, defaut =10 so that is the problem.

I've changed :
TeeMsg_DefaultFontSize :={$IFDEF LINUX}'8'{$ELSE}'8'{$ENDIF};

Regards.