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

imagepsslantfont

(PHP 4, PHP 5)

imagepsslantfont — 倾斜某字体

说明

bool imagepsslantfont ( resource $font_index , float $slant )

slant 参数指定的倾斜值来倾斜 font_index 参数指定的字体。

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

参数

font_index

A font resource, returned by imagepsloadfont().

slant

Slant level.

返回值

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

范例

Example #1 imagepsslantfont() example

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

// Slant the font by 22.5
imagepsslantfont($font, 22.5);

// Do any operations with the font here

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

注释

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


!!!站长长期在线接!!!

网站、小程序:定制开发/二次开发/仿制开发等

各种疑难杂症解决/定制接口/定制采集等

站长微信:lxwl520520

站长QQ:1737366103