I'll bet you seen hand stenciled signs advertising garage sales or school events. All you need in the real world is a stencil kit and a can of spray paint and you can make an instant sign. With the advent of TrueType fonts on the computer, it's easy to find a stencil font on the Internet to do the same with a computer. Here's an example of one that's installed on my laptop.
TextEffect for manipulating text
When you place text within a TextBlock you can change the appearance of the text by manipulating
the font size, forecolor or fontweight and other similar properties. Changing a setting like a font
size affects all text within the text block unless you wrap the text within multipe
What I want to happen in this example is spell out a word in a TextBlock, apply the stencil font and then adjust the positioning of individual letters within the TextBlock to look as if they were laid out by hand. Here's a screenshot to show what I mean. The second TextBlock is using the TextEffect property.
Digging into the TextEffect XAML
The
Requires Free Membership to View
When you register, you'll begin receiving targeted emails from my team of award-winning writers. Our goal is to provide a unique online resource for developers, architects and development managers tasked with building and maintaining enterprise applications using Visual Basic, C# and the Microsoft .NET platform.
Hannah Smalltree, Editorial Director
This was first published in July 2010