
Gmagick::queryfonts는 특정 글꼴을 선택하여 가져올 수 없습니다. 하지만, 글꼴 목록을 가져온 후, 특정 글꼴을 선택하여 가져올 수 있습니다.
예를 들어, Gmagick::queryfonts를 사용하여 글꼴 목록을 가져온 후, foreach문을 사용하여 목록을 반복하고, 특정 글꼴을 선택하여 가져올 수 있습니다.
#hostingforum.kr
php
$gmagick = new Gmagick();
$fonts = $gmagick->queryfonts();
foreach ($fonts as $font) {
if ($font == '한글') {
echo $font . "n";
}
}
Gmagick::queryfonts의 반환 값은 글꼴 목록입니다. 반환 값은 배열 형태로 반환되며, 각 배열에는 글꼴 이름이 포함되어 있습니다.
```php
array(
'한글',
'Arial',
'Times New Roman',
'Courier New',
'Verdana',
'Tahoma',
'Georgia',
'Impact',
'Lucida Console',
'Lucida Sans Typewriter',
'Microsoft Sans Serif',
'Symbol',
'Webdings',
'Wingdings',
'Tahoma',
'Calibri',
'Cambria',
'Courier',
'Franklin Gothic Medium',
'Garamond',
'Georgia',
'Impact',
'Lucida Sans',
'Microsoft Sans Serif',
'Palatino Linotype',
'Tahoma',
'Times New Roman',
'Verdana',
'Webdings',
'Wingdings',
'Calibri',
'Cambria',
'Courier',
'Franklin Gothic Medium',
'Garamond',
'Georgia',
'Impact',
'Lucida Sans',
'Microsoft Sans Serif',
'Palatino Linotype',
'Tahoma',
'Times New Roman',
'Verdana',
'Webdings',
'Wingdings',
'Calibri',
'Cambria',
'Courier',
'Franklin Gothic Medium',
'Garamond',
'Georgia',
'Impact',
'Lucida Sans',
'Microsoft Sans Serif',
'Palatino Linotype',
'Tahoma',
'Times New Roman',
'Verdana',
'Webdings',
'Wingdings',
'Calibri',
'Cambria',
'Courier',
'Franklin Gothic Medium',
'Garamond',
'Georgia',
'Impact',
'Lucida Sans',
'Microsoft Sans Serif',
'Palatino Linotype',
'Tahoma',
'Times New Roman',
'Verdana',
'Webdings',
'Wingdings',
'Calibri',
'Cambria',
'Courier',
'Franklin Gothic Medium',
'Garamond',
'Georgia',
'Impact',
'Lucida Sans',
'Microsoft Sans Serif',
'Palatino Linotype',
'Tahoma',
'Times New Roman',
'Verdana',
'Webdings',
'Wingdings',
'Calibri',
'Cambria',
'Courier',
'Franklin Gothic Medium',
'Garamond',
'Georgia',
'Impact',
'Lucida Sans',
'Microsoft Sans Serif',
'Palatino Linotype',
'Tahoma',
'Times New Roman',
'Verdana',
'Webdings',
'Wingdings',
'Calibri',
'Cambria',
'Courier',
'Franklin Gothic Medium',
'Garamond',
'Georgia',
'Impact',
'Lucida Sans',
'Microsoft Sans Serif',
'Palatino Linotype',
'Tahoma',
'Times New Roman',
'Verdana',
'Webdings',
'Wingdings',
'Calibri',
'Cambria',
'Courier',
'Franklin Gothic Medium',
'Garamond',
'Georgia',
'Impact',
'Lucida Sans',
'Microsoft Sans Serif',
'Palatino Linotype',
'Tahoma',
'Times New Roman',
'Verdana',
'Webdings',
'Wingdings',
'Calibri',
'Cambria',
'Courier',
'Franklin Gothic Medium',
'Garamond',
'Georgia',
'Impact',
'Lucida Sans',
'Microsoft Sans Serif',
'Palatino Linotype',
'Tahoma',
'Times New Roman',
'Verdana',
'Webdings',
'Wingdings',
'Calibri',
'Cambria',
'Courier',
'Franklin Gothic Medium',
'Garamond',
'Georgia',
'Impact',
'Lucida Sans',
'Microsoft Sans Serif',
'Palatino Linotype',
'Tahoma',
'Times New Roman',
'Verdana',
'Webdings',
'Wingdings',
'Calibri',
'Cambria',
'Courier',
'Franklin Gothic Medium',
'Garamond',
'Georgia',
'Impact',
'Lucida Sans',
'Microsoft Sans Serif',
'Palatino Linotype',
'Tahoma',
'Times New Roman',
'Verdana',
'Webdings',
'Wingdings',
'Calibri',
'Cambria',
'Courier',
'Franklin Gothic Medium',
'Garamond',
'Georgia',
'Impact',
'Lucida Sans',
'Microsoft Sans Serif',
'Palatino Linotype',
'Tahoma',
'Times New Roman',
'Verdana',
'Webdings',
'Wingdings',
'Calibri',
'Cambria',
'Courier',
'Franklin Gothic Medium',
'Garamond',
'Georgia',
'Impact',
'Lucida Sans',
'Microsoft Sans Serif',
'Palatino Linotype',
'Tahoma',
'Times New Roman',
'Verdana',
'Webdings',
'Wingdings',
'Calibri',
'Cambria',
'Courier',
'Franklin Gothic Medium',
'Garamond',
'Georgia',
'Impact',
'Lucida Sans',
'Microsoft Sans Serif',
'Palatino Linotype',
'Tahoma',
'Times New Roman',
'Verdana',
'Webdings',
'Wingdings',
'Calibri',
'Cambria',
'Courier',
'Franklin Gothic Medium',
'Garamond',
'Georgia',
'Impact',
'Lucida Sans',
'Microsoft Sans Serif',
'Palatino Linotype',
'Tahoma',
'Times New Roman',
'Verdana',
'Webdings',
'Wingdings',
'Calibri',
'Cambria',
'Courier',
'Franklin Gothic Medium',
'Garamond',
'Georgia',
'Impact',
'Lucida Sans',
'Microsoft Sans Serif',
'Palatino Linotype',
'Tahoma',
'Times New Roman',
'Verdana',
'Webdings',
'Wingdings',
'Calibri',
'Cambria',
'Courier',
'Franklin Gothic Medium',
'Garamond',
'Georgia',
'Impact',
'Lucida Sans',
'Microsoft Sans Serif',
'Palatino Linotype',
'Tahoma',
'Times New Roman',
'Verdana',
'Webdings',
'Wingdings',
'Calibri',
'Cambria',
'Courier',
'Franklin Gothic Medium',
'Garamond',
'Georgia',
'Impact',
'Lucida Sans',
'Microsoft Sans Serif',
'Palatino Linotype',
'Tahoma',
'Times New Roman',
'Verdana',
'Webdings',
'Wingdings',
'Calibri',
'Cambria',
'Courier',
'Franklin Gothic Medium',
'Garamond',
'Georgia',
'Impact',
'Lucida Sans',
'Microsoft Sans Serif',
'Palatino Linotype',
'Tahoma',
'Times New Roman',
'Verdana',
'Webdings',
'Wingdings',
'Calibri',
'Cambria',
'Courier',
'Franklin Gothic Medium',
'Garamond',
'Georgia',
'Impact',
'Lucida Sans',
'Microsoft Sans Serif',
'Palatino Linotype',
'Tahoma',
'Times New Roman',
'Verdana',
'Webdings',
'Wingdings',
'Calibri',
'Cambria',
'Courier',
'Franklin Gothic Medium',
'Garamond',
'Georgia',
'Impact',
'Lucida Sans',
'Microsoft Sans Serif',
'Palatino Linotype',
'Tahoma',
'Times New Roman',
'Verdana',
'Webdings',
'Wingdings',
'Calibri',
'Cambria',
'Courier',
'Franklin Gothic Medium',
'Garamond',
'Georgia',
'Impact',
'Lucida Sans',
'Microsoft Sans Serif',
'Palatino Linotype',
'Tahoma',
'Times New Roman',
'Verdana',
'Webdings',
'Wing
2025-07-22 17:39