• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • HaruPage::setTextRenderingMode()

    (PECL haru >= 0.0.1)

    Set text rendering mode for the page

    说明

    HaruPage::setTextRenderingMode(int $mode): bool

    Defines text rendering mode for the page.

    参数

    $mode

    Must be one of the following values:

    • HaruPage::FILL
    • HaruPage::STROKE
    • HaruPage::FILL_THEN_STROKE
    • HaruPage::INVISIBLE
    • HaruPage::FILL_CLIPPING
    • HaruPage::STROKE_CLIPPING
    • HaruPage::FILL_STROKE_CLIPPING
    • HaruPage::CLIPPING

    返回值

    Returns TRUE on success.

    错误/异常

    发生错误时抛出HaruException异常。

    参见

    • HaruPage::getTextRenderingMode() Get the current text rendering mode