getstringwidth.htm 688 B

1234567891011121314151617181920212223
  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>GetStringWidth</TITLE>
  6. <LINK TYPE="text/css" REL="stylesheet" HREF="../fpdf.css">
  7. </HEAD>
  8. <BODY>
  9. <H2>GetStringWidth</H2>
  10. <TT><B>float</B> GetStringWidth(<B>string</B> s)</TT>
  11. <H4 CLASS='st'>Version</H4>
  12. 1.2
  13. <H4 CLASS='st'>Description</H4>
  14. Returns the length of a string in user unit. A font must be selected.
  15. <H4 CLASS='st'>Parameters</H4>
  16. <TT><U>s</U></TT>
  17. <BLOCKQUOTE>
  18. The string whose length is to be computed.
  19. </BLOCKQUOTE>
  20. <HR STYLE="margin-top:1.2em">
  21. <DIV ALIGN="CENTER"><A HREF="index.htm">Index</A></DIV>
  22. </BODY>
  23. </HTML>