1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
|
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 294366 $ -->
<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
-->
|