导航首页 »  技术教程 »  PHP:imagepsfreefont()的用法_GD库图像处理函数
PHP:imagepsfreefont()的用法_GD库图像处理函数 1210 2023-12-15   

imagepsfreefont

(PHP 4, PHP 5)

imagepsfreefont — 释放一个 PostScript Type 1 字体所占用的内存

说明

bool imagepsfreefont ( resource $font_index )

imagepsfreefont() 释放一个 PostScript Type 1 字体所占用的内存。

参数

font_index

imagepsloadfont() 返回的字体资源。

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

范例

Example #1 imagepsfreefont() 例子

<?php
// Load a .pfb font file
$font = imagepsloadfont('./bchbi.pfb');

// Do any operations with the font here

// Free the font from memory
imagepsfreefont($font);
?>

注释

Note: 此函数仅在 PHP 编译时指定了 --with-t1lib[=DIR] 时可用。

参见

imagepsloadfont() - 从文件中加载一个 PostScript Type 1 字体



文章评论 (0条)
发表评论
暂无评论,快来抢沙发吧~