A Tenecmcharts question...

Macca

Member
Hi Guys,

I have the Brultech ECM1240 installed and experimentally charting our 240VAC 80A incoming supply and a 20A subpanel supply. It works tremendously well and when coupled with Tenholde's excellent tenecmserver application it is a great addition to my home automation and monitoring setup.

Our main day to day laptop is a 2008 Toshiba Satellite (Core 2 Duo/3GB RAM/Vista SP1) which I cannot get the tenecmcharts application to work on. It is working on all the other XP machines on my network. Tenecmcharts will stop immediately after startup with an error message "Font Arial does not support style regular"....

Its probably a Vista issue, but here it is anyway in case I am missing something:

************** Exception Text **************
System.ArgumentException: Font 'Arial' does not support style 'Regular'.
at System.Drawing.Font.CreateNativeFont()
at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
at System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
at System.Drawing.Font..ctor(String familyName, Single emSize, FontStyle style, GraphicsUnit unit)
at ZedGraph.FontSpec.Remake(Single scaleFactor, Single size, Single& scaledSize, Font& font)
at ZedGraph.FontSpec.Init(String family, Single size, Color color, Boolean isBold, Boolean isItalic, Boolean isUnderline, Color fillColor, Brush fillBrush, FillType fillType)
at ZedGraph.Legend..ctor()
at ZedGraph.PaneBase..ctor(String title, RectangleF paneRect)
at ZedGraph.GraphPane..ctor(RectangleF rect, String title, String xTitle, String yTitle)
at ZedGraph.GraphPane..ctor()
at tenChartEngine.EcmChart.CreateRealtimeChart(SortedList`2 Data)
at tenEcmCharts.frmMain.GenerateChart()
at tenEcmCharts.frmMain.ProcessEcmPackets(String p)
at tenEcmReceive.tenEcmReceive.ReceivedCallback(Object s)


If anyone has any ideas on what is causing this fault, please let me know....

Cheers
Andrew
 
Yup, I would suspect a Vista issue. I would assume Vista still include the Arial Font, but may be not the "regular" part? All my machines are running XP. Ed checks in here pretty regularly, but make sure you conact him directly via his website as he has been very responsive and easy to work with.
 
Cheers Wayne,

I did'nt want to bother him if it was a known issue...the software is awesome, and is working relly well on the XP platforms.

If he sees this email and can point me in the right direction thats cool. ;)

Cheers mate,
Andrew

Yup, I would suspect a Vista issue. I would assume Vista still include the Arial Font, but may be not the "regular" part? All my machines are running XP. Ed checks in here pretty regularly, but make sure you conact him directly via his website as he has been very responsive and easy to work with.
 
Andrew,
I am running tenEcmCharts on two different Vista computers with no problems. Don't know what that problem could be.
tenholde
 
Found this:



Thanks,
I don't know if the Arial font had gotten replaced or not... but after you asked, I Googled and found a few other references to my problem. They suggested that perhaps the Arial font was corrupt, and to replace it.
I copied Arial.ttf from my XP computer, installed it, and the problem is gone.

In Notepad, when I click on "Format - Font" and click on Arial I now get 4 styles, including Regular. Before, I wasn't seeing Regular.

Your program works fine now, and I really like the ability to have a different background on each monitor.
Thanks again.



tenholde
 
And this:





I fixed this one. The web wisdom is that the font file is corrupt and needs to be replaced. Mine wasn't corrupt, it was the right length and checksummed cleanly. I also could not delete Arial.

The cure was going to safe mode, which let me delete the font, and reinstalling most of the Arial family from the files on CD. The files did not change, but I think that the act of deleting and installing them fixed the registry settings that were actually broken. Actually, I did this twice. The first time I replace Arial, the second time I replace four out of the five Arial fonts and that did the job.

Thanks to anyone who started looking into this.




tenholde
 
Hi Guys,

Tenholde, that has sorted the problem and tenecmcharts now works superbly on my Vista laptop. The issue was the same as the other users, I was missing the Arial Regular font. I have no idea how this happened, but installing arial.ttf to the fonts folder has cured the problem.

Thanks for the support and keep up the fantastic work.

Andrew


And this:





I fixed this one. The web wisdom is that the font file is corrupt and needs to be replaced. Mine wasn't corrupt, it was the right length and checksummed cleanly. I also could not delete Arial.

The cure was going to safe mode, which let me delete the font, and reinstalling most of the Arial family from the files on CD. The files did not change, but I think that the act of deleting and installing them fixed the registry settings that were actually broken. Actually, I did this twice. The first time I replace Arial, the second time I replace four out of the five Arial fonts and that did the job.

Thanks to anyone who started looking into this.




tenholde
 
Back
Top