PHP Velho Oeste 2024

CairoFontFace::getType

cairo_font_face_get_type

(PECL cairo >= 0.1.0)

CairoFontFace::getType -- cairo_font_face_get_typeRetrieves the font face type

Descrição

Estilo orientado à objeto (method):

public CairoFontFace::getType ( void ) : int

Estilo procedural:

cairo_font_face_get_type ( CairoFontFace $fontface ) : int

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

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

A font type that can be any one defined in CairoFontType

Exemplos

Exemplo #1 CairoFontFace::getType() example

<?php

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

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

?>

O exemplo acima irá imprimir algo similar à:

int(0)

Veja Também

  • Classname::Method()

add a note add a note

User Contributed Notes

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