In a given word, I want to show one or more Perso-Arabic letters with different formatting (e.g., different color, larger size, etc.). This breaks the combining characters though. In the 3 items below:
1) the word wrapped in a <Span/>
and it displays correctly
2) The word's middle letter wrapped in a <Span/>
and it displays correctly
3) The word's middle letter wrapped in a <Span/>
with it's color changed to red - it does not display correctly
<TextBlock xml:lang="fa-IR" Language="fa-IR" FontSize="60" FlowDirection="RightToLeft">
<TextBlock.Inlines>
<Span Foreground="Yellow">حال</Span>
ح<Span>ا</Span>ل
ح<Span Foreground="Red">ا</Span>ل
</TextBlock.Inlines>
</TextBlock>
The XAML I'm using is WP8 variant. Is there anyway around this issue to have formatting applied and not break combining characters?