[LON-CAPA-cvs] cvs: loncom /homework convertjme.pl doc/loncapafiles loncapafiles.lpml
albertel
lon-capa-cvs@mail.lon-capa.org
Wed, 02 Feb 2005 20:08:05 -0000
albertel Wed Feb 2 15:08:05 2005 EDT
Modified files:
/doc/loncapafiles loncapafiles.lpml
/loncom/homework convertjme.pl
Log:
- BUG#3857, - went missing in the font, adding a font and using it
Index: doc/loncapafiles/loncapafiles.lpml
diff -u doc/loncapafiles/loncapafiles.lpml:1.406 doc/loncapafiles/loncapafiles.lpml:1.407
--- doc/loncapafiles/loncapafiles.lpml:1.406 Sun Jan 16 03:06:30 2005
+++ doc/loncapafiles/loncapafiles.lpml Wed Feb 2 15:08:05 2005
@@ -2,7 +2,7 @@
"http://lpml.sourceforge.net/DTD/lpml.dtd">
<!-- loncapafiles.lpml -->
-<!-- $Id: loncapafiles.lpml,v 1.406 2005/01/16 08:06:30 albertel Exp $ -->
+<!-- $Id: loncapafiles.lpml,v 1.407 2005/02/02 20:08:05 albertel Exp $ -->
<!--
@@ -510,6 +510,12 @@
</directory>
<directory dist='default'>
<protectionlevel>modest_delete</protectionlevel>
+ <targetdir dist='default'>home/httpd/html/adm/fonts</targetdir>
+ <categoryname>server readonly</categoryname>
+ <description>fonts</description>
+</directory>
+<directory dist='default'>
+ <protectionlevel>modest_delete</protectionlevel>
<targetdir dist='default'>home/httpd/html/adm/help</targetdir>
<categoryname>server readonly</categoryname>
<description>online help documentation</description>
@@ -2760,6 +2766,25 @@
</description>
<status>works/unverified</status>
</file>
+<fileglob>
+ <glob>*</glob>
+ <sourcedir>loncom/html/adm/fonts/</sourcedir>
+ <targetdir dist='default'>home/httpd/html/adm/fonts/</targetdir>
+ <categoryname>interface file</categoryname>
+ <description>
+ Fonts for convertjme.pl
+ </description>
+ <filenames>
+AUTHORS;
+BUGS;
+DejaVuSerif-Roman.ttf;
+LICENSE;
+NEWS;
+README;
+status.txt;
+unicover.txt
+ </filenames>
+</fileglob>
<file>
<source>loncom/interface/lonstatistics.pm</source>
<target dist='default'>home/httpd/lib/perl/Apache/lonstatistics.pm</target>
Index: loncom/homework/convertjme.pl
diff -u loncom/homework/convertjme.pl:1.11 loncom/homework/convertjme.pl:1.12
--- loncom/homework/convertjme.pl:1.11 Mon Jan 31 16:55:44 2005
+++ loncom/homework/convertjme.pl Wed Feb 2 15:08:05 2005
@@ -2,7 +2,7 @@
# The LearningOnline Network with CAPA
# Dynamically converts JME strings into either a png or ps file.
#
-# $Id: convertjme.pl,v 1.11 2005/01/31 21:55:44 albertel Exp $
+# $Id: convertjme.pl,v 1.12 2005/02/02 20:08:05 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -137,7 +137,7 @@
my %electrons = ("C",4,"N",5,"P",5,"O",6,"S",6);
my %font_width = (" ",250,"+",564,"-",500,"0",500,"1",500,"2",500,"3",500,"4",500,"5",500,"6",500,"7",500,"8",500,"9",500,"A",722,"B",667,"C",667,"D",722,"E",611,"F",556,"G",722,"H",722,"I",333,"J",389,"K",722,"L",611,"M",889,"N",722,"O",722,"P",556,"Q",722,"R",667,"S",556,"T",611,"U",722,"V",722,"W",944,"X",722,"Y",722,"Z",611,"a",444,"b",500,"c",444,"d",500,"e",444,"f",333,"g",500,"h",500,"i",278,"j",278,"k",500,"l",278,"m",778,"n",500,"o",500,"p",500,"q",500,"r",333,"s",389,"t",278,"u",500,"v",500,"w",722,"x",500,"y",500,"z",444);
-my $font = '/usr/share/fonts/default/Type1/n021003l.pfb';
+my $font = '/home/httpd/html/adm/fonts/DejaVuSerif-Roman.ttf';
my $pointsize = 20;
my ($ptsize,@bounds);
if ($png) {