PHP imagefontheight 图像GD库函数

  • 定义和用法

    imagefontheight - 取得字体高度
  • 版本支持

    PHP4 PHP5 PHP7
    支持 支持 支持
  • 语法

    imagefontheight ( int $font )
    
    imagefontheight() 返回指定字体一个字符高度的像素值。
  • 参数

    参数 必需的 描述
    font 有字体加载函数 imagefontload() 函数返回。
  • 返回值

    成功时返回 TRUE, 或者在失败时返回 FALSE。
  • 示例

    $font = imageloadfont("04b.gdf");
    $font_height = imagefontheight($font);
    
  • 相关函数

    imagefontwidth() - 取得字体宽度。
    imageloadfont() - 载入一种字体。