diff mde/resource/font.d @ 49:bca7e2342d77

Enabled getting the size of a text block (before or after rendering). committer: Diggory Hardy <diggory.hardy@gmail.com>
author Diggory Hardy <diggory.hardy@gmail.com>
date Sat, 31 May 2008 13:10:06 +0100
parents a98ffb64f066
children f68ae1d667f9
line wrap: on
line diff
--- a/mde/resource/font.d	Sat May 31 12:40:26 2008 +0100
+++ b/mde/resource/font.d	Sat May 31 13:10:06 2008 +0100
@@ -204,6 +204,10 @@
     
     /** Draw a block of text (may inlcude new-lines).
      *
+     * The text block is drawn with top-left corner at x,y. To put the text's baseline at a given
+     * y coordinate would require some changes. Line height is currently variable, depending on the
+     * highest glyph in the line.
+     *
      * As a CPU-side code optimisation, store a TextBlock (unique to str) and pass a reference as
      * the cache argument. This is the recommended method, although for one-time calls when you
      * don't need to know the size, the other version of textBlock may be used.