From 82b8920443d409f7b18f17f956f0250c161abe7e Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Wed, 31 Jul 2013 12:55:32 +0300 Subject: [PATCH] Gfx: Added comment --- Common/Gfx/Canvas.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Common/Gfx/Canvas.h b/Common/Gfx/Canvas.h index 8f3cb7d1..5b7b88dd 100644 --- a/Common/Gfx/Canvas.h +++ b/Common/Gfx/Canvas.h @@ -100,6 +100,12 @@ protected: int m_W; int m_H; + // GDI+, by default, includes padding around the string and also has a larger character spacing + // compared to DirectWrite. In order to minimize diffeences between the text renderers, + // an option is provided to enable accurate (typographic) text rendering. If set to |true|, + // it is expected that there is no padding around the text and that the output is similar to + // the default DirectWrite output. Otherwise, the expected result should be similar to that of + // non-typographic GDI+. bool m_AccurateText; private: