php教程

Gmagick::queryfonts

(PECL gmagick >= Unknown)

Gmagick::queryfontsReturns the configured fonts

说明

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

Returns fonts supported by Gmagick.

参数

此函数没有参数。

返回值

The Gmagick object on success

错误/异常

错误时抛出 GmagickException

User Contributed Notes

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

CopyRight © 2008-2022 verySource.Com All Rights reserved. 京ICP备17048824号-1 京公网安备:11010502034788