略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Gmagick::queryfonts

2024-04-27

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

add a noteadd a note

User Contributed Notes 1 note

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

官方地址:https://www.php.net/manual/en/gmagick.queryfonts.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3