1
<Canvas xmlns="http://schemas.microsoft.com/client/2007">
3
<!-- "Hello, World!" done entirely with Indices -->
8
FontRenderingEmSize="18"
10
UnicodeString="Something else"
13
<!-- "Hello, World!!" done entirely with Indices -->
18
FontRenderingEmSize="18"
20
Indices="43;72;79;79;82;15;3;58;82;85;79;71;4;4;"
23
<!-- Replace UnicodeString's "Hello, World!!" with "Something else" using Indices -->
28
FontRenderingEmSize="18"
30
UnicodeString="Hello, World!!"
31
Indices="54;82;80;72;87;75;76;81;74;3;72;79;86;72;"
34
<!-- Change the Advance of the W -->
39
FontRenderingEmSize="18"
41
UnicodeString="Hello, World!!"
42
Indices=";;;;;;;,150;"
45
<!-- Change the uOffset of the W -->
50
FontRenderingEmSize="18"
52
UnicodeString="Hello, World!!"
53
Indices=";;;;;;;,,-20,;"
56
<!-- Change the vOffset of the W -->
61
FontRenderingEmSize="18"
63
UnicodeString="Hello, World!!"
64
Indices=";;;;;;;,,,80;"
67
<!-- Change the Advance and uOffset of the W -->
72
FontRenderingEmSize="18"
74
UnicodeString="Hello, World!!"
75
Indices=";;;;;;;,150,80;"
78
<!-- Replace "F-I" with the fi ligature -->
83
FontRenderingEmSize="18"
85
UnicodeString="This is an F-I ligature"
86
Indices=";;;;;;;;;;;(3:1)191"
89
<!-- Replace one string with another string of equal length -->
94
FontRenderingEmSize="18"
96
UnicodeString="fubar, there!"
97
Indices="(5:5)43;72;79;79;82;"
100
<!-- Replace a shorter string with a longer string -->
105
FontRenderingEmSize="18"
107
UnicodeString="blah, there!"
108
Indices="(4:5)43;72;79;79;82;"
111
<!-- Replace a longer string with a shorter string -->
116
FontRenderingEmSize="18"
117
Fill="CornflowerBlue"
118
UnicodeString="superfly, there!"
119
Indices="(8:5)43;72;79;79;82;"