You are here

public function TextimageFontsHandlerFontyourface::getList in Textimage 7.3

Return an array of fonts.

Parameters

array $options: an array of additional options.

Return value

array Array of font names.

Overrides TextimageFontsHandlerInterface::getList

File

classes/font_handlers/fontyourface.inc, line 24
Textimage - Fonts handler class for @font-your-face.

Class

TextimageFontsHandlerFontyourface
Fonts handler for @font-your-face.

Code

public function getList($options) {
  $list = array();
  $font_list = fontyourface_get_fonts("enabled = 1 and provider = 'local_fonts'", 'name ASC');
  if ($font_list) {
    foreach ($font_list as $font) {
      $list[] = $font->name;
    }
  }
  return $list;
}