60 |
jpm |
1 |
<html>
|
|
|
2 |
<head>
|
|
|
3 |
<title>Documentation</title>
|
|
|
4 |
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
|
|
|
5 |
<link rel='stylesheet' href='style.css' />
|
|
|
6 |
</head>
|
|
|
7 |
|
|
|
8 |
<body>
|
|
|
9 |
<div align='center'>
|
|
|
10 |
<table cellpadding='0' cellspacing='0' id='contenu' class='round' style='width: 80%; margin-bottom: 20px'>
|
|
|
11 |
<tr>
|
|
|
12 |
<td class='borderhg'> </td>
|
|
|
13 |
<td class='borderh'> </td>
|
|
|
14 |
<td class='cornerhd'></td>
|
|
|
15 |
</tr>
|
|
|
16 |
<tr>
|
|
|
17 |
<td class='borderg'> </td>
|
|
|
18 |
<td><a id="top"></a><h2> Class PHPFont</h2><div class="extends"><ul>
|
|
|
19 |
<li><a href="Font.html">Font</a></li>
|
|
|
20 |
<ul><li>PHPFont</li></ul>
|
|
|
21 |
</ul></div><div class="description">
|
|
|
22 |
<p>
|
|
|
23 |
La classe <a href="PHPFont.html">PHPFont</a> permet de gérer les polices fournie avec PHP. Ce sont des polices pouvant subir peu de transformation (rotation de 90° uniquement par exemple).
|
|
|
24 |
</p>
|
|
|
25 |
<p>
|
|
|
26 |
Il existe 5 polices prédéfinies, ainsi que les 5 classes "raccourcies" correspondantes:
|
|
|
27 |
<pre>
|
|
|
28 |
|
|
|
29 |
<?php
|
|
|
30 |
|
|
|
31 |
// Equivalent à new <a href="PHPFont.html">PHPFont</a>(1);
|
|
|
32 |
$font = new Font1;
|
|
|
33 |
|
|
|
34 |
// Equivalent à new <a href="PHPFont.html">PHPFont</a>(2);
|
|
|
35 |
$font = new Font2;
|
|
|
36 |
|
|
|
37 |
// etc.
|
|
|
38 |
|
|
|
39 |
?>
|
|
|
40 |
|
|
|
41 |
</pre>
|
|
|
42 |
</p>
|
|
|
43 |
</div><ul class="links"><li><a href="index.html">Retourner voir la liste de toutes les classes</a></li></ul><h2>Méthodes et propriétés</h2><ul class="properties"><li>
|
|
|
44 |
<span class="access">public</span> <span class="type">int</span> <a href="PHPFont.html#property.font"><span class="argument">$font</span></a>
|
|
|
45 |
</li></ul><ul class="methods"><li>
|
|
|
46 |
<span class="access">public</span> <a href="PHPFont.html#method.__construct">__construct</a>(<span class="type">int</span> <span class="argument">$font</span>)
|
|
|
47 |
</li></ul><h2>Documentation</h2><ul class="doc">
|
|
|
48 |
<li class="property">
|
|
|
49 |
<a id="property.font"></a><span class="access">public</span> <span class="type">int</span> <a href="PHPFont.html#property.font"><span class="argument">$font</span></a><div class="description">
|
|
|
50 |
L'identifiant de la police, de 1 à 5.
|
|
|
51 |
</div>
|
|
|
52 |
<div class="description-bottom"><a href="PHPFont.html#top">Remonter</a></div>
|
|
|
53 |
</li>
|
|
|
54 |
<li class="method">
|
|
|
55 |
<a id="method.__construct"></a><span class="access">public</span> <a href="PHPFont.html#method.__construct">__construct</a>(<span class="type">int</span> <span class="argument">$font</span>)
|
|
|
56 |
<div class="description">
|
|
|
57 |
Construit la police d'identifiant $font.
|
|
|
58 |
</div>
|
|
|
59 |
<div class="description-bottom"><a href="PHPFont.html#top">Remonter</a></div>
|
|
|
60 |
</li>
|
|
|
61 |
</ul>
|
|
|
62 |
</td>
|
|
|
63 |
<td class='borderd'> </td>
|
|
|
64 |
</tr>
|
|
|
65 |
<tr>
|
|
|
66 |
<td class='cornerbg'></td>
|
|
|
67 |
<td class='borderb'> </td>
|
|
|
68 |
<td class='cornerbd'></td>
|
|
|
69 |
</tr>
|
|
|
70 |
</table>
|
|
|
71 |
</div>
|
|
|
72 |
</body>
|
|
|
73 |
</html>
|