Revision: 30
http://nplot.svn.sourceforge.net/nplot/?rev=30&view=rev
Author: jamcquay
Date: 2007-08-08 16:52:52 -0700 (Wed, 08 Aug 2007)
Log Message:
-----------
Fixed [SF bug 1713592]
Fixed for version 0.9.10.1
If the Arial font is not installed on the system an NPlotException is thrown which clearly states that the Arial font is not installed.
Fix coded by: jamcquay
Signed off by: jamcquay
Modified Paths:
--------------
trunk/src/PlotSurface2D.cs
Modified: trunk/src/PlotSurface2D.cs
===================================================================
--- trunk/src/PlotSurface2D.cs 2007-03-30 19:12:03 UTC (rev 29)
+++ trunk/src/PlotSurface2D.cs 2007-08-08 23:52:52 UTC (rev 30)
@@ -462,8 +462,17 @@
yAxisPositions_ = new ArrayList();
zPositions_ = new ArrayList();
ordering_ = new SortedList();
- FontFamily fontFamily = new FontFamily("Arial");
- TitleFont = new Font(fontFamily, 14, FontStyle.Regular, GraphicsUnit.Pixel);
+
+ try
+ {
+ FontFamily fontFamily = new FontFamily("Arial");
+ TitleFont = new Font(fontFamily, 14, FontStyle.Regular, GraphicsUnit.Pixel);
+ }
+ catch (System.ArgumentException)
+ {
+ throw new NPlotException("Error: Arial font is not installed on this system");
+ }
+
padding_ = 10;
title_ = "";
autoScaleTitle_ = false;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|