diff options
Diffstat (limited to 'gui/font.h')
-rw-r--r-- | gui/font.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gui/font.h b/gui/font.h index 55ad9e9a1d..207b42a493 100644 --- a/gui/font.h +++ b/gui/font.h @@ -46,6 +46,19 @@ struct Surface { Surface() : pixels(0), w(0), h(0), pitch(0), bytesPerPixel(0) {} }; +/** + * Instances of this class represent a distinct font, with a built-in renderer. + * @todo Maybe move the high-level methods (drawString etc.) to a separate + * FontRenderer class? That way, we could have different variants... ? + * @todo Add more parameters to drawString, or additional similar methods, + * featuring abilities like + * - rendering with wrap-around instead of inserting an ellipsis or + * cutting them; needs a 'height' parameter + * - rendering multi-line strings (essentially, invoke the regular + * drawString for each line, and advance one line) + * - combinations of the two above: honor line feeds, and also wrap + * overlong lines + */ class Font { public: virtual int getFontHeight() const = 0; |