HaruPage::setFontAndSize()
(PECL haru >= 0.0.1)
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