Return an array of all available Google Fonts.

@return array    All Google Fonts.
193537
public static function get_google_fonts() {
		if ( ! self::$google_fonts ) {
			$googlefonts        = new GoogleFonts();
			self::$google_fonts = $googlefonts->get_google_fonts();
		}
		return self::$google_fonts;
	}
279237
public function publicAssets()
    {
        return [
            ADMINLTETEMPLATE_PATH.'/public/css'                 => public_path('css'),
            ADMINLTETEMPLATE_PATH.'/public/js'                  => public_path('js'),
            ADMINLTETEMPLATE_PATH.'/public/fonts'               => public_path('fonts'),
            ADMINLTETEMPLATE_PATH.'/public/img'               => public_path('img'),
            ADMINLTETEMPLATE_PATH.'/public/mix-manifest.json'   => public_path('mix-manifest.json')
        ];
    }
577564
public static function is_google_font( $fontname ) {
		if ( is_string( $fontname ) ) {
			$fonts = self::get_google_fonts();
			return isset( $fonts[ $fontname ] );
		}
		return false;
	}
178191
public function getAllMessages()
    {
        $messages = [];
        foreach (array_keys($this->errors) as $key) {
            $messages = array_merge($messages, $this->getMessages($key));
        }
        return $messages;
    }
1370847
function saveFont()
	{
		$saved = [];
		$saved['family'] = $this->FontFamily;
		$saved['style'] = $this->FontStyle;
		$saved['sizePt'] = $this->FontSizePt;
		$saved['size'] = $this->FontSize;
		$saved['curr'] = &$this->CurrentFont;
		$saved['lang'] = $this->currentLang; // mPDF 6
		$saved['color'] = $this->TextColor;
		$saved['spanbgcolor'] = $this->spanbgcolor;
		$saved['spanbgcolorarray'] = $this->spanbgcolorarray;
		$saved['bord'] = $this->spanborder;
		$saved['border'] = $this->spanborddet;
		$saved['HREF'] = $this->HREF;
		$saved['textvar'] = $this->textvar; // mPDF 5.7.1
		$saved['textshadow'] = $this->textshadow;
		$saved['linewidth'] = $this->LineWidth;
		$saved['drawcolor'] = $this->DrawColor;
		$saved['textparam'] = $this->textparam;
		$saved['ReqFontStyle'] = $this->ReqFontStyle;
		$saved['fixedlSpacing'] = $this->fixedlSpacing;
		$saved['minwSpacing'] = $this->minwSpacing;
		return $saved;
	}
1191609
function () {
        var spans = []
        for (var index = 0, length = baseFonts.length; index < length; index++) {
          var s = createSpan()
          s.style.fontFamily = baseFonts[index]
          baseFontsDiv.appendChild(s)
          spans.push(s)
        }
        return spans
      }
718261
def list_fonts():
    
    vals = _list_fonts()
    for font in _vispy_fonts:
        vals += [font] if font not in vals else []
    vals = sorted(vals, key=lambda s: s.lower())
    return vals
623032
public static function getAll()
    {
        $result = [];
        foreach (\array_keys(CldrData::getLanguageNames()) as $cldrLanguageId) {
            $result[] = new Language(CldrData::getLanguageInfo($cldrLanguageId));
        }

        return $result;
    }
965910
public function getReadableNames() {
		$the_array = $this->icons_array;

		if ( is_array( $the_array ) ) {
			$temp = array();

			foreach ( $the_array as $class => $unicode ) {
				$temp[ $class ] = $this->generateName( $class );
			}

			$the_array = $temp;
		}

		return $the_array;

	}
1263912
public function all()
    {
        $list = [];

        /** @var UniformResourceLocator $locator */
        $locator = $this->grav['locator'];

        $iterator = $locator->getIterator('themes://');

        /** @var \DirectoryIterator $directory */
        foreach ($iterator as $directory) {
            if (!$directory->isDir() || $directory->isDot()) {
                continue;
            }

            $theme = $directory->getFilename();
            $result = $this->get($theme);

            if ($result) {
                $list[$theme] = $result;
            }
        }
        ksort($list);

        return $list;
    }
317380
private function _allowedStyles(): array
    {
        $styles = [];
        $plugins = array_flip($this->_getRedactorConfig()['plugins'] ?? []);
        if (isset($plugins['alignment'])) {
            $styles['text-align'] = true;
        }
        if (isset($plugins['fontcolor'])) {
            $styles['color'] = true;
        }
        if (isset($plugins['fontfamily'])) {
            $styles['font-family'] = true;
        }
        if (isset($plugins['fontsize'])) {
            $styles['font-size'] = true;
        }
        return $styles;
    }
997468
public static function allNames()
    {
        static $list;

        if ($list === null) {
            $list = [];
            $data = \ResourceBundle::create(\Locale::getDefault(), 'ICUDATA-curr')->get('Currencies');
            foreach ($data as $code => $values) {
                $list[$code] = $values[1];
            }
        }

        return $list;
    }
192389
public function process_fonts() {

		// Early exit if font-family is empty.
		if ( empty( $this->fonts ) ) {
			return;
		}

		foreach ( $this->fonts as $font => $variants ) {

			// Determine if this is indeed a google font or not.
			// If it's not, then just remove it from the array.
			if ( ! array_key_exists( $font, $this->google_fonts ) ) {
				unset( $this->fonts[ $font ] );
				continue;
			}

			// Get all valid font variants for this font.
			$font_variants = [];
			if ( isset( $this->google_fonts[ $font ]['variants'] ) ) {
				$font_variants = $this->google_fonts[ $font ]['variants'];
			}
			foreach ( $variants as $variant ) {

				// If this is not a valid variant for this font-family
				// then unset it and move on to the next one.
				if ( ! in_array( strval( $variant ), $font_variants, true ) ) {
					$variant_key = array_search( $variant, $this->fonts[ $font ], true );
					unset( $this->fonts[ $font ][ $variant_key ] );
					continue;
				}
			}
		}
	}
802314
public function getTextSettings()
    {
        $messages = array(
            'gaf_id' => $this->_('Sub filter may not be the same as this filter.'),
            $this->_('Filters may be chosen only once.')
                );

        return array(
            'gaf_filter_text1' => array(
                'label'        => $this->_('Filter 1'),
                'elementClass' => 'Select',
                'multiOptions' => $this->_filters,
                'required'     => true,
                'validator'    => new \MUtil_Validate_NotEqualTo('gaf_id', $messages),
                ),
            'gaf_filter_text2' => array(
                'label'        => $this->_('Filter 2'),
                'elementClass' => 'Select',
                'multiOptions' => $this->_filters,
                'required'     => true,
                'validator'    => new \MUtil_Validate_NotEqualTo(array('gaf_id', 'gaf_filter_text1'), $messages),
                ),
            'gaf_filter_text3' => array(
                'label'        => $this->_('Filter 3'),
                'elementClass' => 'Select',
                'multiOptions' => $this->_filters,
                'validator'    => new \MUtil_Validate_NotEqualTo(
                        array('gaf_id', 'gaf_filter_text1', 'gaf_filter_text2'),
                        $messages
                        ),
                ),
            'gaf_filter_text4' => array(
                'label'        => $this->_('Filter 4'),
                'elementClass' => 'Select',
                'multiOptions' => $this->_filters,
                'validator'    => new \MUtil_Validate_NotEqualTo(
                        array('gaf_id', 'gaf_filter_text1', 'gaf_filter_text2', 'gaf_filter_text3'),
                        $messages
                        ),
                ),
            );
    }
983006
public static function enumSizes() {
        return [
            MaterialDesignIconicFontIconInterface::MATERIAL_DESIGN_ICONIC_FONT_SIZE_LG,
            MaterialDesignIconicFontIconInterface::MATERIAL_DESIGN_ICONIC_FONT_SIZE_2X,
            MaterialDesignIconicFontIconInterface::MATERIAL_DESIGN_ICONIC_FONT_SIZE_3X,
            MaterialDesignIconicFontIconInterface::MATERIAL_DESIGN_ICONIC_FONT_SIZE_4X,
            MaterialDesignIconicFontIconInterface::MATERIAL_DESIGN_ICONIC_FONT_SIZE_5X,
        ];
    }
1034045
public static function fetch_google_fonts( $api_key = null ) {
		$raw_fonts = static::request_google_fonts( $api_key );

		// Invalid API key or something else.
		if ( ! is_array( $raw_fonts ) || ! isset( $raw_fonts['items'] ) ) {
			return [];
		}

		$fonts = [];

		foreach ( $raw_fonts['items'] as $item ) {
			if ( ! isset( $item['kind'] ) || 'webfonts#webfont' !== $item['kind'] ) {
				continue;
			}

			$fonts[] = Arr::only( $item, [ 'family', 'category', 'variants', 'subset' ] );
		}

		static::flush_transients();
		static::set_transients( $fonts );

		return $fonts;
	}
9822
public function getFaxes()
    {
        $faxes = [];
        if ($this->entity->getFaxes()) {
            foreach ($this->entity->getFaxes() as $fax) {
                $faxes[] = $fax;
            }
        }

        return $faxes;
    }