Page 1 of 1

Fonts not rendering properly in metafiles

Posted: Wed Sep 17, 2008 5:19 pm
by 10047094
Hello,

For some reason, fonts are not rendering properly in metafiles. I made a quick chart and added two series. All the series had default values. I was really testing transparency, which still does not work with metafiles, but I see that the font rendering in metafiles is mixed up.

The two images are zipped up in

http://www.denovosoftware.com/download/tchartfonts.zip

The exported width of the metafile was exactly the same as the chart, so no scaling should have been applied in this case.

Posted: Thu Sep 18, 2008 10:03 am
by narcis
Hi dave,

Have you tried using enhanced metafiles? They render fonts correctly here.

Thanks in advance.

Posted: Thu Sep 18, 2008 3:04 pm
by 10047094
Hi Narcis,

The image I included in the zip was an enhanced metafile (emf).

I really did nothing, I created the project added the two series, made one semi transparent and then exported to BMP and EMP as showing in the zip file. That is really working for you?

Posted: Thu Sep 18, 2008 3:14 pm
by narcis
Hi Dave,

Yes, this works fine for me here. Which exact TeeChart version are you using?

Thanks in advance.

Posted: Thu Sep 18, 2008 7:09 pm
by 10047094
Hi Narcis,

We are using TChart 8.02.

The situation is even stranger than I thought. I build a sample app and put it up on

http://www.denovosoftware.com/download/chart-fonts.zip

There are a bunch of graphics in there, as well as the application.

delphi.gif is a screenshot of how project1.exe looks when I run it on my computer.

chart-computer1.bmp is an output when I click the bmp button in project1.exe, on my first computer. Note that the shading on the legend is missing.

chart-computer1.emf is an output when I click the emf in project1.exe on my first computer. Note the fonts are wider than the BMP but the shading is fine.

chart-computer2.bmp is output on a second computer when I click the bmp button. Note the shading on the legend is still missing.

chart-computer2.emf is output on a second computer when I click teh emf button. Note that everything is perfect.

My conclusion is that:

a) there is a bug rendering the legend shading to BMP
b) somehow, the computer that I am on affects the EMF that is rendered. As far as I know, both computers have the same windows patches are are up to date.

Is there any reason you can think of that an EMF would be rendered differently on two different computers?

Posted: Fri Sep 19, 2008 7:44 am
by narcis
Hi dave,

Thanks for the information.
a) there is a bug rendering the legend shading to BMP
I've added this to the defect list (TV52013406) to be investigated for next releases.
b) somehow, the computer that I am on affects the EMF that is rendered. As far as I know, both computers have the same windows patches are are up to date.
Not that I can think of. It also works fine for me here, using our latest v8 sources. I'll send you an e-mail with new sources so that you can check if it makes any difference at your end.