<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>The CairoFontType class</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="class.cairofontslant.html">CairoFontSlant</a></div> <div class="next" style="text-align: right; float: right;"><a href="class.cairofontweight.html">CairoFontWeight</a></div> <div class="up"><a href="book.cairo.html">Cairo</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="class.cairofonttype" class="reference"> <h1 class="title">The CairoFontType class</h1> <div class="partintro"><p class="verinfo">(No version information available, might only be in SVN)</p> <div class="section" id="cairofonttype.intro"> <h2 class="title">Introduction</h2> <p class="para"> CairoFontType class is an abstract final class that contains constants used to describe the type of a given <a href="class.cairofontface.html" class="classname">CairoFontFace</a> or <a href="class.cairoscaledfont.html" class="classname">CairoScaledFont</a>. The font types are also known as "font backends" within cairo. </p> <p class="para"> The type of a CairoFontFace is determined by the how it is created, an example would be the <span class="methodname"><strong>CairoToyFontFace::__construct()</strong></span>. The <a href="class.cairofontface.html" class="classname">CairoFontFace</a> type can be queried with <span class="methodname"><a href="cairofontface.gettype.html" class="methodname">CairoFontFace::getType()</a></span> or <span class="function"><a href="function.cairo-font-face-get-type.html" class="function">cairo_font_face_get_type()</a></span> </p> <p class="para"> The various <a href="class.cairofontface.html" class="classname">CairoFontFace</a> functions can be used with a font face of any type. </p> <p class="para"> The type of a <a href="class.cairoscaledfont.html" class="classname">CairoScaledFont</a> is determined by the type of the <a href="class.cairofontface.html" class="classname">CairoFontFace</a> passed to <span class="methodname"><a href="cairoscaledfont.construct.html" class="methodname">CairoScaledFont::__construct()</a></span> or <span class="function"><a href="function.cairo-scaled-font-create.html" class="function">cairo_scaled_font_create()</a></span>. The scaled font type can be queried with <span class="methodname"><a href="cairoscaledfont.gettype.html" class="methodname">CairoScaledFont::getType()</a></span> or <span class="function"><a href="function.cairo-scaled-font-get-type.html" class="function">cairo_scaled_font_get_type()</a></span>. </p> </div> <div class="section" id="cairofonttype.synopsis"> <h2 class="title">Class synopsis</h2> <div class="classsynopsis"> <div class="ooclass"></div> <div class="classsynopsisinfo"> <span class="ooclass"> <strong class="classname">CairoFontType</strong> </span> {</div> <div class="classsynopsisinfo classsynopsisinfo_comment">/* Constants */</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">integer</span> <var class="fieldsynopsis_varname"><a href="class.cairofonttype.html#cairofonttype.constants.toy"><var class="varname">TOY</var></a></var> <span class="initializer"> = 0</span> ;</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">integer</span> <var class="fieldsynopsis_varname"><a href="class.cairofonttype.html#cairofonttype.constants.ft"><var class="varname">FT</var></a></var> <span class="initializer"> = 1</span> ;</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">integer</span> <var class="fieldsynopsis_varname"><a href="class.cairofonttype.html#cairofonttype.constants.win32"><var class="varname">WIN32</var></a></var> <span class="initializer"> = 2</span> ;</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">integer</span> <var class="fieldsynopsis_varname"><a href="class.cairofonttype.html#cairofonttype.constants.quartz"><var class="varname">QUARTZ</var></a></var> <span class="initializer"> = 3</span> ;</div> }</div> </div> <div class="section" id="cairofonttype.constants"> <h2 class="title">Predefined Constants</h2> <dl> <dt id="cairofonttype.constants.toy"> <span class="term"><strong><code>CairoFontType::TOY</code></strong></span> <dd> <p class="para">The font was created using <strong class="classname">CairoToyFont</strong> api</p> </dd> </dt> <dt id="cairofonttype.constants.ft"> <span class="term"><strong><code>CairoFontType::FT</code></strong></span> <dd> <p class="para">The font is of type <strong class="classname">CairoFreeType</strong></p> </dd> </dt> <dt id="cairofonttype.constants.win32"> <span class="term"><strong><code>CairoFontType::WIN32</code></strong></span> <dd> <p class="para">The font is of type Win32</p> </dd> </dt> <dt id="cairofonttype.constants.quartz"> <span class="term"><strong><code>CairoFontType::QUARTZ</code></strong></span> <dd> <p class="para">The font is of type Quartz</p> </dd> </dt> <dt id="cairofonttype.constants.user"> <span class="term"><strong><code>CairoFontType::USER</code></strong></span> <dd> <p class="para">The font was create using cairo's user font api</p> </dd> </dt> </dl> </div> </div> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="class.cairofontslant.html">CairoFontSlant</a></div> <div class="next" style="text-align: right; float: right;"><a href="class.cairofontweight.html">CairoFontWeight</a></div> <div class="up"><a href="book.cairo.html">Cairo</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>