text.htm 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  5. <title>Text</title>
  6. <link type="text/css" rel="stylesheet" href="../fpdf.css">
  7. </head>
  8. <body>
  9. <h1>Text</h1>
  10. <code>Text(<b>float</b> x, <b>float</b> y, <b>string</b> txt)</code>
  11. <h2>Description</h2>
  12. Prints a character string. The origin is on the left of the first character, on the baseline.
  13. This method allows to place a string precisely on the page, but it is usually easier to use
  14. Cell(), MultiCell() or Write() which are the standard methods to print text.
  15. <h2>Parameters</h2>
  16. <dl class="param">
  17. <dt><code>x</code></dt>
  18. <dd>
  19. Abscissa of the origin.
  20. </dd>
  21. <dt><code>y</code></dt>
  22. <dd>
  23. Ordinate of the origin.
  24. </dd>
  25. <dt><code>txt</code></dt>
  26. <dd>
  27. String to print.
  28. </dd>
  29. </dl>
  30. <h2>See also</h2>
  31. <a href="setfont.htm">SetFont</a>,
  32. <a href="settextcolor.htm">SetTextColor</a>,
  33. <a href="cell.htm">Cell</a>,
  34. <a href="multicell.htm">MultiCell</a>,
  35. <a href="write.htm">Write</a>
  36. <hr style="margin-top:1.5em">
  37. <div style="text-align:center"><a href="index.htm">Index</a></div>
  38. </body>
  39. </html>