HaruPage::textOut
HaruFont
HaruPage
PHP Manual

# HaruPage::textRect

(PECL haru >= 0.0.1)

HaruPage::textRect — Print the text inside the specified region

### 설명

bool HaruPage::textRect ( float `$left` , float `$top` , float `$right` , float `$bottom` , string `$text` [, int `$align`= HaruPage::TALIGN_LEFT ] )

Prints the text inside the specified region.

### 인수

`left`

  Left border of the text area.

`top`

  Top border of the text area.

`right`

  Right border of the text area.

`bottom`

  Lower border of the text area.

`text`

  The text to print.

`align`

  Text alignment. Must be one of the following values:

  - `HaruPage::TALIGN_LEFT`
  - `HaruPage::TALIGN_RIGHT`
  - `HaruPage::TALIGN_CENTER`
  - `HaruPage::TALIGN_JUSTIFY`

### 반환값

Returns `TRUE` on success.

### 오류/예외

오류 시에 HaruException을 던짐.

### 참고

- HaruPage::showTextNextLine - Move the current position to the start of the next line and print the text
- HaruPage::showText - Print text at the current position of the page
- HaruPage::textOut - Print the text on the specified position

HaruPage::textOut
HaruFont
HaruPage
PHP Manual