Fonts not rendering properly in metafiles

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
dave novo
Newbie
Newbie
Posts: 25
Joined: Tue Oct 23, 2007 12:00 am

Fonts not rendering properly in metafiles

Post by dave novo » Wed Sep 17, 2008 5:19 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Sep 18, 2008 10:03 am

Hi dave,

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

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

dave novo
Newbie
Newbie
Posts: 25
Joined: Tue Oct 23, 2007 12:00 am

Post by dave novo » Thu Sep 18, 2008 3:04 pm

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?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Sep 18, 2008 3:14 pm

Hi Dave,

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

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

dave novo
Newbie
Newbie
Posts: 25
Joined: Tue Oct 23, 2007 12:00 am

Post by dave novo » Thu Sep 18, 2008 7:09 pm

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?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Sep 19, 2008 7:44 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply