略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: CairoFontFace::getType

2024-05-03

CairoFontFace::getType

cairo_font_face_get_type

(PECL cairo >= 0.1.0)

CairoFontFace::getType -- cairo_font_face_get_typeRetrieves the font face type

说明

面向对象风格 (method):

public CairoFontFace::getType ( void ) : int

过程化风格:

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.

参数

此函数没有参数。

返回值

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.

官方地址:https://www.php.net/manual/en/cairofontface.gettype.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3