编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « HaruPage::setFlatness
  • HaruPage::setGrayFill »
  • PHP Manual
  • HaruPage
  • Set font and fontsize for the page

HaruPage::setFontAndSize

(PECL haru >= 0.0.1)

HaruPage::setFontAndSize — Set font and fontsize for the page

说明

HaruPage::setFontAndSize ( object $font , float $size ) : bool

Defines current font and its size for the page.

参数

font

A valid HaruFont instance.

size

The size of the font.

返回值

Returns TRUE on success.

错误/异常

发生错误时抛出 HaruException 异常。

参见

  • HaruDoc::getFont() - Get HaruFont instance

相关文章
php harupage set character spacing for the pagephp harupage set filling color for the pagephp harupage set stroking color for the pagephp harupage set the dash pattern for the pagephp harupage set flatness for the pagephp harupage set font and fontsize for the pagephp harupage set filling color for the pagephp harupage set height of the pagephp harupage set horizontal scaling for the pagephp harupage set line join style for the pagephp harupage set filling color for the pagephp harupage set stroking color for the pagephp harupage set rotation angle of the pagephp harupage set size and direction of the pagephp harupage set transition style for the pagephp harupage set text leading line spacing for the pagephp harupage set the current text transformation matrix of the pagephp harupage set text rendering mode for the pagephp harupage set width of the pagephp harupage set word spacing for the page
关注编程学问公众号
编程学问网 湘ICP备20001732号