public static function ViewsPdfBase::getAvailableFontsCleanList in Views PDF 8
This method returns a cleaned up version of the font list.
3 calls to ViewsPdfBase::getAvailableFontsCleanList()
- Fields::options_form in src/
Plugin/ views/ row/ Fields.php - Provide a form for setting options.
- Page::buildOptionsForm in src/
Plugin/ views/ display/ Page.php - Provide a form to edit options for this plugin.
- Page::optionsSummary in src/
Plugin/ views/ display/ Page.php - Provides the default summary for options in the views UI.
File
- src/
ViewsPdfBase.php, line 1146 - Contains \Drupal\views_pdf\ViewsPdfTemplate.
Class
- ViewsPdfBase
- The main class to generate the PDF.
Namespace
Drupal\views_pdfCode
public static function getAvailableFontsCleanList() {
if (self::$fontListClean != NULL) {
return self::$fontListClean;
}
$clean = self::getAvailableFonts();
foreach ($clean as $key => $font) {
// Unset bold, italic, italic/bold fonts
unset($clean[$key . 'b']);
unset($clean[$key . 'bi']);
unset($clean[$key . 'i']);
}
self::$fontListClean = $clean;
return $clean;
}