array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'imagick.queryfonts.php', 1 => 'Imagick::queryFonts', 2 => 'Returns the configured fonts', ), 'up' => array ( 0 => 'class.imagick.php', 1 => 'Imagick', ), 'prev' => array ( 0 => 'imagick.queryfontmetrics.php', 1 => 'Imagick::queryFontMetrics', ), 'next' => array ( 0 => 'imagick.queryformats.php', 1 => 'Imagick::queryFormats', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/imagick/imagick/queryfonts.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Imagick::queryFonts

(PECL imagick 2, PECL imagick 3)

Imagick::queryFontsReturns the configured fonts

Beschreibung

public static Imagick::queryFonts(string $pattern = "*"): array

Returns the configured fonts.

Parameter-Liste

pattern

The query pattern

Rückgabewerte

Returns an array containing the configured fonts.

Fehler/Exceptions

Wirft ImagickException bei Fehlern.

Beispiele

Beispiel #1 Imagick::queryFonts()

<?php
$output
= '';
$output .= "Fonts that match 'Helvetica*' are:<br/>";

$fontList = \Imagick::queryFonts("Helvetica*");

foreach (
$fontList as $fontName) {
$output .= '<li>'. $fontName."</li>";
}

return
$output;

?>