[LON-CAPA-cvs] cvs: loncom /xml lonplot.pm
raeburn
raeburn at source.lon-capa.org
Sun Jan 20 21:25:38 EST 2013
raeburn Mon Jan 21 02:25:38 2013 EDT
Modified files:
/loncom/xml lonplot.pm
Log:
- Modify change in rev. 1.162.
- Helvetica font is only available when target is tex
(get "gdImageStringFT: Could not find/open font" errors if target is web).
Index: loncom/xml/lonplot.pm
diff -u loncom/xml/lonplot.pm:1.170 loncom/xml/lonplot.pm:1.171
--- loncom/xml/lonplot.pm:1.170 Wed Dec 5 19:30:28 2012
+++ loncom/xml/lonplot.pm Mon Jan 21 02:25:38 2013
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Dynamic plot
#
-# $Id: lonplot.pm,v 1.170 2012/12/05 19:30:28 raeburn Exp $
+# $Id: lonplot.pm,v 1.171 2013/01/21 02:25:38 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1752,7 +1752,7 @@
if ($spec->{'minorfreq'} != 0) {
$result .= "set m$type $spec->{'minorfreq'}\n";
}
- } else {
+ } elsif ($target eq 'tex' ) {
$result .= "set $type font " . '"Helvetica,22"' ."\n";
}
More information about the LON-CAPA-cvs
mailing list