Question about Font Size, Delphi7 / Kylix3

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Wysu
Newbie
Newbie
Posts: 21
Joined: Wed Apr 27, 2005 4:00 am

Question about Font Size, Delphi7 / Kylix3

Post by Wysu » Thu Oct 08, 2009 9:55 am

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.

Wysu
Newbie
Newbie
Posts: 21
Joined: Wed Apr 27, 2005 4:00 am

Re: Question about Font Size, Delphi7 / Kylix3

Post by Wysu » Thu Oct 22, 2009 3:16 pm

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.

Post Reply