--- loncom/interface/loncommon.pm 2006/04/18 19:18:17 1.339 +++ loncom/interface/loncommon.pm 2006/04/18 20:50:30 1.340 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.339 2006/04/18 19:18:17 albertel Exp $ +# $Id: loncommon.pm,v 1.340 2006/04/18 20:50:30 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3076,7 +3076,7 @@ sub headtag { my $result = ''. - &Apache::lonxml::fontsettings(). + &font_settings(). &Apache::lonhtmlcommon::htmlareaheaders(); if ($args->{'force_register'}) { @@ -3102,6 +3102,33 @@ ADDMETA =pod +=over 4 + +=item * &font_settings() + +Returns neccessary to set the proper encoding + +Inputs: none + +=back + +=cut + +sub font_settings { + my $headerstring=''; + if (($env{'browser.os'} eq 'mac') && (!$env{'browser.mathml'})) { + $headerstring.= + ''; + } elsif (!$env{'browser.mathml'} && $env{'browser.unicode'}) { + $headerstring.= + ''; + } + return $headerstring; +} + + +=pod + =over 4 =item * &endheadtag()