font.htm 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
  2. <html><head>
  3. <title>font</title>
  4. </head><body>
  5. <p>[<a href="mxdoc.htm">mainpage</a>]
  6. [<a href="tags.htm">tags</a>]<br>
  7. <h1>tag: font</h1><ul><li>
  8. <a name="MX_FONT"><code>MX_FONT</code></a>
  9. <p>
  10. <p><b>A font </b><p>
  11. (<a href="../include/degfx/font.h">../include/degfx/font.h</a>)<br>(library <a href="degfx.htm">degfx</a> : module <a href="degfx_font.htm">font</a>)
  12. <p></li>
  13. <li>
  14. <a name="unsigned int mx_font_height(const MX_FONT* font)"><code>unsigned int mx_font_height(const MX_FONT* font)</code></a>
  15. <p>
  16. <p><b>Return the height of a font </b><p>
  17. (<a href="../include/degfx/font.h">../include/degfx/font.h</a>)<br>
  18. !The height in pixels of a font
  19. This function return the height of a font in pixels.
  20. (<a href="../include/degfx/font/fontsize.c">../include/degfx/font/fontsize.c</a>)
  21. <p>If the font argument is 0 then the default font be used.
  22. (<a href="../include/degfx/font/fontsize.c">../include/degfx/font/fontsize.c</a>)<br>(library <a href="degfx.htm">degfx</a> : module <a href="degfx_font.htm">font</a>)
  23. <p></li>
  24. <li>
  25. <a name="void mx_font_bitmap_drawblock(const MX_FONT* font, MX_BITMAP* bitmap, const char* text, int len, int x, int y, const MX_PIXEL fore)"><code>void mx_font_bitmap_drawblock(const MX_FONT* font, MX_BITMAP* bitmap, const char* text, int len, int x, int y, const MX_PIXEL fore)</code></a>
  26. <p>
  27. <p><b>Draw multi-line text onto a bitmap</b><p>
  28. This function draws text on a bitamp. Newline characters (\r or \r\n)
  29. cause the following text to be placed on the following line.
  30. (<a href="../include/degfx/font/block.c">../include/degfx/font/block.c</a>)
  31. <p>If the font argument is 0 then the default font be used.
  32. (<a href="../include/degfx/font/block.c">../include/degfx/font/block.c</a>)
  33. <p>The function mx_font_bitmap_draw() function is used internally
  34. to draw the individual text lines.
  35. (<a href="../include/degfx/font/block.c">../include/degfx/font/block.c</a>)<br>(library <a href="degfx.htm">degfx</a> : module <a href="degfx_font.htm">font</a>)
  36. <p></li>
  37. <li>
  38. <a name="void mx_font_bitmap_draw(const MX_FONT* font, MX_BITMAP* bitmap, const char* text, int len, int x, const int y, const MX_PIXEL fore)"><code>void mx_font_bitmap_draw(const MX_FONT* font, MX_BITMAP* bitmap, const char* text, int len, int x, const int y, const MX_PIXEL fore)</code></a>
  39. <p>
  40. <p><b>Draw text onto a bitmap</b><p>
  41. This function draws text on a bitmap at a specific position using a specified
  42. font and color. Only the foreground color is drawn, the pixels 'behind' the
  43. text are not drawn.
  44. (<a href="../include/degfx/font/fontdraw.c">../include/degfx/font/fontdraw.c</a>)
  45. <p>If the font argument is 0 then the default font is used.
  46. (<a href="../include/degfx/font/fontdraw.c">../include/degfx/font/fontdraw.c</a>)
  47. <p>If the length argument is less than zero then the string is assumed to be
  48. zero terminated
  49. (<a href="../include/degfx/font/fontdraw.c">../include/degfx/font/fontdraw.c</a>)
  50. <p>The text drawing is made efficient by skipping text, or portions of
  51. text that will be clipped.
  52. (<a href="../include/degfx/font/fontdraw.c">../include/degfx/font/fontdraw.c</a>)<br>(library <a href="degfx.htm">degfx</a> : module <a href="degfx_font.htm">font</a>)
  53. <p></li>
  54. <li>
  55. <a name="unsigned int mx_font_width(const MX_FONT* font, const char* text, int num)"><code>unsigned int mx_font_width(const MX_FONT* font, const char* text, int num)</code></a>
  56. <p>
  57. <p><b>The width in pixels of some text</b><p>
  58. This function return the width of a portion of text in pixels.
  59. (<a href="../include/degfx/font/fontsize.c">../include/degfx/font/fontsize.c</a>)
  60. <p>If the font argument is 0 then the default font be used.
  61. (<a href="../include/degfx/font/fontsize.c">../include/degfx/font/fontsize.c</a>)
  62. <p>If the length of characters is less than 0 then the text is assumed
  63. to be zero terminated.
  64. (<a href="../include/degfx/font/fontsize.c">../include/degfx/font/fontsize.c</a>)<br>(library <a href="degfx.htm">degfx</a> : module <a href="degfx_font.htm">font</a>)
  65. <p></li>
  66. <li>
  67. <a name="MX_FONT* mx_font_bitmap(const MX_BITMAP* bitmap, int start)"><code>MX_FONT* mx_font_bitmap(const MX_BITMAP* bitmap, int start)</code></a>
  68. <p>
  69. <p><b>Load a font from a bitmap. </b><p>
  70. (<a href="../include/degfx/font/loadfont.c">../include/degfx/font/loadfont.c</a>)<br>(library <a href="degfx.htm">degfx</a> : module <a href="degfx_font.htm">font</a>)
  71. <p></li>
  72. <li>
  73. <a name="MX_FONT* mx_font_pcx(const char* filename, int start)"><code>MX_FONT* mx_font_pcx(const char* filename, int start)</code></a>
  74. <p>
  75. <p><b>Load a font from a PCX file. </b><p>
  76. (<a href="../include/degfx/font/loadfont.c">../include/degfx/font/loadfont.c</a>)<br>(library <a href="degfx.htm">degfx</a> : module <a href="degfx_font.htm">font</a>)
  77. <p></li>
  78. </ul><p>Generated by <a href="http://www.deleveld.dds.nl/mxdoc/index.htm">MXDOC</a> 2.2 on Sun Feb 4 15:16:26 2007
  79. </body></html>