Posted on June 11th, 2008 by rolode
ImagePSLoadFont
载入 PostScript 字型。
语法: int imagepsloadfont(string filename);
返回值: 整数
函数种类: 图形处理
内容说明
本函数用来载入 PostScript Type1 字型。参数 filename 为 PostScript Type1 字型的名称。
参考
ImagePSFreeFont()
Filed under: PHP 技术 学习 教程 | No Comments »
Posted on June 11th, 2008 by rolode
ImagePSFreeFont
卸下 PostScript 字型。
语法: void imagepsfreefont(int fontindex);
返回值: 整数
函数种类: 图形处理
内容说明
本函数将已载入 PostScript Type1 字型卸下。参数 fontindex 为载入 PostScript Type1 字型的 handle。
参考
ImagePSLoadFont()
Filed under: PHP 技术 学习 教程 | No Comments »
Posted on June 11th, 2008 by rolode
ImagePSEncodeFont
PostScript 字型转成向量字。
语法: int imagepsencodefont(string encodingfile);
返回值: 整数
函数种类: 图形处理
内容说明
本函数将 PostScript Type1 字型转换成向量字。若需要西方语衔募特殊文字则要 T1lib 函数库。目前 T1lib 提供 IsoLatin1.enc 和 IsoLatin2.enc 二套字。若常要使用向量字,可以在 php3.ini/php.ini 中配置 ps.default_encoding,PHP 系统会自动载入转换。
参考
ImagePSLoadFont()
Filed under: PHP 技术 学习 教程 | No Comments »
Posted on June 11th, 2008 by rolode
ImagePSBBox
计算 PostScript 文字所占区域。
语法: array imagepsbbox(string text, int font, int size, int space, int width, float angle);
返回值: 数组
函数种类: 图形处理
内容说明
本函数用来计算并返回 PostScript 文字区域框 (bounding box) 大小。参数 text 为要写入的字符串。参数 font 则为指定的字型。参数 size 为字的大小,单位为像素 (pixel)。参数 width 为的宽度。angle 为角度。返回数组有四个元素,第一、二个分别为左下角的 x,y 值,第三、四个元素为右上角的 x,y 值。
参考
ImagePSText()
Filed under: PHP 技术 学习 教程 | No Comments »
Posted on June 11th, 2008 by rolode
ImagePSText
写 PostScript 文字到图中。
语法: array imagepstext(int image, string text, int font, int size, int foreground, int background, int x, int y, int space, int tightness, float angle, int antialias_steps);
返回值: 数组
函数种类: 图形处理
内容说明
本函数将 PostScript Type1 字型文字写入图片。参数 image 为图形。text 参数为要写入的字符串。参数 font 则为指定的字型。参数 size 为字的大小,单位为像素 (pixel)。参数 foreground 及 background 分别为前景及背景色,程序会依这二色来修正文字边晕募锯齿。参数 x,y 为文字的坐标,以左下角开始计算。space 参数为文字间的空隔大小。参数 tightness 为单字间的紧密度。angle 为角度。最后一个参数 antialias_steps 为边缘锯齿状修正的等级,范围为 4 至 […]
Filed under: PHP 技术 学习 教程 | No Comments »