Home > PHP > Function > > HaruPage::setFontAndSize()

HaruPage::setFontAndSize()

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

Syntax

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

Arguments

  • font - A valid HaruFontinstance.
  • size - The size of the font.

Description

Defines current font and its size for the page.

Version

PHP PECL haru >= 0.0.1

Return value

Returns TRUE on success.