func_graphics_max2d_textheight.rst 441 B

123456789101112131415161718192021222324252627282930313233343536
  1. .. _func_graphics_max2d_textheight:
  2. ==========
  3. TextHeight
  4. ==========
  5. TextHeight -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. TextHeight( text$ )
  10. Get height of text
  11. This command is useful for calculating vertical alignment of text when using
  12. the #DrawText command.
  13. Parameters
  14. ==========
  15. Return Values
  16. =============
  17. the height, in pixels, of @text based on the current image font.
  18. Examples
  19. ========
  20. See Also
  21. ========