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

예제

Example #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()

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top