original_string: public function font_url($font, $component) {
          global $CFG;
  
          $params = array('theme'=>$this->name);
  
          if (empty($component) or $component === 'moodle' or $component === 'core') {
              $params['component'] = 'core';
          } else {
              $params['component'] = $component;
          }
  
          $rev = theme_get_revision();
          if ($rev != -1) {
              $params['rev'] = $rev;
          }
  
          $params['font'] = $font;
  
          $url = new moodle_url("/theme/font.php");
          if (!empty($CFG->slasharguments) and $rev > 0) {
              $path = '/'.$params['theme'].'/'.$params['component'].'/'.$params['rev'].'/'.$params['font'];
              $url->set_slashargument($path, 'noparam', true);
          } else {
              $url->params($params);
          }
  
          return $url;
      }
code: public function font_url($font, $component) {
          global $CFG;
  
          $params = array('theme'=>$this->name);
  
          if (empty($component) or $component === 'moodle' or $component === 'core') {
              $params['component'] = 'core';
          } else {
              $params['component'] = $component;
          }
  
          $rev = theme_get_revision();
          if ($rev != -1) {
              $params['rev'] = $rev;
          }
  
          $params['font'] = $font;
  
          $url = new moodle_url("/theme/font.php");
          if (!empty($CFG->slasharguments) and $rev > 0) {
              $path = '/'.$params['theme'].'/'.$params['component'].'/'.$params['rev'].'/'.$params['font'];
              $url->set_slashargument($path, 'noparam', true);
          } else {
              $url->params($params);
          }
  
          return $url;
      }
code_tokens: public function font_url ( $ font , $ component ) { global $ CFG ; $ params = array ( 'theme' => $ this -> name ) ; if ( empty ( $ component ) or $ component === 'moodle' or $ component === 'core' ) { $ params [ 'component' ] = 'core' ; } else { $ params [ 'component' ] = $ component ; } $ rev = theme_get_revision ( ) ; if ( $ rev != - 1 ) { $ params [ 'rev' ] = $ rev ; } $ params [ 'font' ] = $ font ; $ url = new moodle_url ( "/theme/font.php" ) ; if ( ! empty ( $ CFG -> slasharguments ) and $ rev > 0 ) { $ path = '/' . $ params [ 'theme' ] . '/' . $ params [ 'component' ] . '/' . $ params [ 'rev' ] . '/' . $ params [ 'font' ] ; $ url -> set_slashargument ( $ path , 'noparam' , true ) ; } else { $ url -> params ( $ params ) ; } return $ url ; }
docstring: Return the URL for a font
  
  @param string $font the name of the font (including extension).
  @param string $component specification of one plugin like in get_string()
  @return moodle_url
docstring_tokens: Return the URL for a font