Text Outline (TextRenderingMode.Stroke)

Text Outline (TextRenderingMode.Stroke)

Forum member · Feb 4, 2008
Is this possible? I don't see any way to set the TextRenderingMode to TextRenderingMode.Stroke. I'm trying to do it for one label on the page. -Mike

Re: Text Outline (TextRenderingMode.Stroke)

Support · Feb 4, 2008
Hello Mike, You will have to create a Custom Page element by inheriting from the Label page element. Override the DrawRotated method and in the method set the TextRenderingMode.Stroke. Following is the sample code block: protected override void DrawRotated( PageWriter writer ) { writer.SetLineWidth(lineWidth); writer.SetTextRenderingMode( TextRenderingMode.Stroke ); writer.SetStrokeColor( base.TextColor ); base.DrawRotated(writer); writer.SetTextRenderingMode( TextRenderingMode.Fill ); } If you want the full working example, please send an email to our [^a|mailto:support@cete.com|Support Team^]. Thanks, ceTe Software Support Team

Re: Text Outline (TextRenderingMode.Stroke)

Forum member · Feb 4, 2008
Thanks! that worked :)