[GDI] x-offset when using Graphics::DrawString(...) [modified]
-
Hello! I am using the following Function to draw text to a screen:
Status DrawString( const WCHAR *string,
INT length,
const Font *font,
const PointF &origin,
const StringFormat *stringFormat,
const Brush *brush
);Works fine, but there is one major problem : even if I use PointF(0,0) as origin, the text is displayed with an x-offset (the concrete width in pixel seems to depend on the Font-Object I use within the DrawString - Function). Any Solution about that? Is this a known bug or even a feature? ;) Thanks in advance! -- modified at 6:43 Wednesday 24th January, 2007
-
Hello! I am using the following Function to draw text to a screen:
Status DrawString( const WCHAR *string,
INT length,
const Font *font,
const PointF &origin,
const StringFormat *stringFormat,
const Brush *brush
);Works fine, but there is one major problem : even if I use PointF(0,0) as origin, the text is displayed with an x-offset (the concrete width in pixel seems to depend on the Font-Object I use within the DrawString - Function). Any Solution about that? Is this a known bug or even a feature? ;) Thanks in advance! -- modified at 6:43 Wednesday 24th January, 2007
_NielsB wrote:
the text is displayed with an x-offset
How much of an x offset?
-
_NielsB wrote:
the text is displayed with an x-offset
How much of an x offset?