Menu

#29 '&" char is not displayed

open
nobody
None
5
2010-04-15
2010-04-15
Yevgen
No

'&" char is not displayed when UseCompatibleTextRendering is true

workaround:
pass TextFormatFlags.NoPrefix flag to DrawText
if (UseCompatibleTextRendering)
TextRenderer.DrawText(context.Graphics, label, font, bounds, textColor, _formatFlags);

to fix it add to BaseTextControl.cs
_baseFormatFlags = TextFormatFlags.PreserveGraphicsClipping | TextFormatFlags.PreserveGraphicsTranslateTransform | TextFormatFlags.NoPrefix;

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.