Stroke Pattern Analysis and Synthesis