php-doc-en/reference/cairo/cairofonttype.xml
2010-02-03 13:03:22 +00:00

157 lines
4.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<phpdoc:classref xml:id="class.cairofonttype" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>The CairoFontType class</title>
<titleabbrev>CairoFontType</titleabbrev>
<partintro>
<!-- {{{ CairoFontType intro -->
<section xml:id="cairofonttype.intro">
&reftitle.intro;
<para>
CairoFontType class is an abstract final class that contains constants used to describe the type
of a given <classname>CairoFontFace</classname> or <classname>CairoScaledFont</classname>.
The font types are also known as "font backends" within cairo.
</para>
<para>
The type of a CairoFontFace is determined by the how it is created, an example would be the
<methodname>CairoToyFontFace::__construct</methodname>.
The <classname>CairoFontFace</classname> type can be queried with
<methodname>CairoFontFace::getType</methodname> or <function>cairo_font_face_get_type</function>
</para>
<para>
The various <classname>CairoFontFace</classname> functions can be used with a font face of any type.
</para>
<para>
The type of a <classname>CairoScaledFont</classname> is determined by the type of the
<classname>CairoFontFace</classname> passed to
<methodname>CairoScaledFont::__construct</methodname> or
<function>cairo_scaled_font_create</function>.
The scaled font type can be queried with <methodname>CairoScaledFont::getType</methodname> or
<function>cairo_scaled_font_get_type</function>.
</para>
</section>
<!-- }}} -->
<section xml:id="cairofonttype.synopsis">
&reftitle.classsynopsis;
<!-- {{{ Synopsis -->
<classsynopsis>
<ooclass><classname>CairoFontType</classname></ooclass>
<!-- {{{ Class synopsis -->
<classsynopsisinfo>
<ooclass>
<classname>CairoFontType</classname>
</ooclass>
</classsynopsisinfo>
<!-- }}} -->
<classsynopsisinfo role="comment">&Constants;</classsynopsisinfo>
<fieldsynopsis>
<modifier>const</modifier>
<type>integer</type>
<varname linkend="cairofonttype.constants.toy">CairoFontType::TOY</varname>
<initializer>0</initializer>
</fieldsynopsis>
<fieldsynopsis>
<modifier>const</modifier>
<type>integer</type>
<varname linkend="cairofonttype.constants.ft">CairoFontType::FT</varname>
<initializer>1</initializer>
</fieldsynopsis>
<fieldsynopsis>
<modifier>const</modifier>
<type>integer</type>
<varname linkend="cairofonttype.constants.win32">CairoFontType::WIN32</varname>
<initializer>2</initializer>
</fieldsynopsis>
<fieldsynopsis>
<modifier>const</modifier>
<type>integer</type>
<varname linkend="cairofonttype.constants.quartz">CairoFontType::QUARTZ</varname>
<initializer>3</initializer>
</fieldsynopsis>
</classsynopsis>
<!-- }}} -->
</section>
<!-- {{{ CairoFontType constants -->
<section xml:id="cairofonttype.constants">
&reftitle.constants;
<section xml:id="cairofonttype.constants.types">
<title>CairoFontType Node Types</title>
<variablelist>
<varlistentry xml:id="cairofonttype.constants.toy">
<term><constant>CairoFontType::TOY</constant></term>
<listitem>
<para>The font was created using <classname>CairoToyFont</classname> api</para>
</listitem>
</varlistentry>
<varlistentry xml:id="cairofonttype.constants.ft">
<term><constant>CairoFontType::FT</constant></term>
<listitem>
<para>The font is of type <classname>CairoFreeType</classname></para>
</listitem>
</varlistentry>
<varlistentry xml:id="cairofonttype.constants.win32">
<term><constant>CairoFontType::WIN32</constant></term>
<listitem>
<para>The font is of type Win32</para>
</listitem>
</varlistentry>
<varlistentry xml:id="cairofonttype.constants.quartz">
<term><constant>CairoFontType::QUARTZ</constant></term>
<listitem>
<para>The font is of type Quartz</para>
</listitem>
</varlistentry>
<varlistentry xml:id="cairofonttype.constants.user">
<term><constant>CairoFontType::USER</constant></term>
<listitem>
<para>The font was create using cairo's user font api</para>
</listitem>
</varlistentry>
</variablelist>
</section>
</section>
<!-- }}} -->
</partintro>
</phpdoc:classref>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->