You are here

protected static function PdfTemplate::getFontNameByFileName in Views PDF 6

Same name and namespace in other branches
  1. 7.3 views_pdf_template.php \PdfTemplate::getFontNameByFileName()
  2. 7 views_pdf_template.php \PdfTemplate::getFontNameByFileName()
  3. 7.2 views_pdf_template.php \PdfTemplate::getFontNameByFileName()

This method returns the name of a given font.

1 call to PdfTemplate::getFontNameByFileName()
PdfTemplate::getAvailableFonts in ./views_pdf_template.php
This method returns a list of available fonts.

File

./views_pdf_template.php, line 956
PDF Class to generate PDFs with native PHP. This class based on FPDF and FPDI.

Class

PdfTemplate
The main class to generate the PDF.

Code

protected static function getFontNameByFileName($path) {
  include $path;
  return $name;
}