You are here

public function rtf::getFontTable in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 modules/rtf/rtf_export.inc \rtf::getFontTable()
  2. 6 class_rtf.php \rtf::getFontTable()
  3. 7.2 modules/rtf/rtf_export.inc \rtf::getFontTable()

Font table.

1 call to rtf::getFontTable()
rtf::getDocument in modules/rtf/rtf_export.inc
Ouput the RTF file.

File

modules/rtf/rtf_export.inc, line 269

Class

rtf

Code

public function getFontTable() {
  $font_buffer = "{\\fonttbl\n";
  foreach ($this->fonts_array as $fnum => $farray) {
    $font_buffer .= "{\\f{$fnum}\\f{$farray['family']}\\fcharset{$farray['charset']} {$farray['name']}}\n";
  }
  $font_buffer .= "}\n\n";
  return $font_buffer;
}