CairoFontFace::getType

(PECL cairo >= 0.1.0)

CairoFontFace::getTypeRetrieves the font face type

Описание

public int CairoFontFace::getType ( void )

This function returns the type of the backend used to create a font face. See CairoFontType class constants for available types.

Список параметров

У этой функции нет параметров.

Возвращаемые значения

A font type that can be any one defined in CairoFontType

Примеры

Пример #1 CairoFontFace::getType() example

<?php

// Creates the font face
$fontface = new CairoToyFontFace('sans-serif');

// Get the font face type
var_dump($fontface->getType());

?>

Результатом выполнения данного примера будет что-то подобное:

int(0)

Смотрите также

  • Classname::Method()


Участник рейтинга Тэглайн 2010