• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • Gmagick::queryfonts()

    (PECL gmagick >= Unknown)

    Returns the configured fonts

    说明

    publicGmagick::queryfonts([string $pattern= "*"]): array

    Returns fonts supported by Gmagick.

    参数

    此函数没有参数。

    返回值

    The Gmagick object on success

    错误/异常

    错误时抛出GmagickException

    An example of how to get the fonts available.
    <?php
    $image = new Gmagick();
    $fonts = $image->queryfonts();
    foreach($fonts as $font){
     echo $font."\n";
    }
    ?>