~ubuntu-branches/ubuntu/karmic/moon/karmic

« back to all changes in this revision

Viewing changes to test/xaml/test-glyph-indices.xaml

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-14 12:01:08 UTC
  • Revision ID: james.westby@ubuntu.com-20090214120108-06539vb25vhbd8bn
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<Canvas xmlns="http://schemas.microsoft.com/client/2007">
 
2
 
 
3
  <!-- "Hello, World!" done entirely with Indices -->
 
4
  <!--<Glyphs
 
5
    OriginX="10"
 
6
    OriginY="30"
 
7
    FontUri="arial.ttf"
 
8
    FontRenderingEmSize="18"
 
9
    Fill="Black"
 
10
    UnicodeString="Something else"
 
11
  />-->
 
12
 
 
13
  <!-- "Hello, World!!" done entirely with Indices -->
 
14
  <Glyphs
 
15
    OriginX="10"
 
16
    OriginY="30"
 
17
    FontUri="arial.ttf"
 
18
    FontRenderingEmSize="18"
 
19
    Fill="Red"
 
20
    Indices="43;72;79;79;82;15;3;58;82;85;79;71;4;4;"
 
21
  />
 
22
 
 
23
  <!-- Replace UnicodeString's "Hello, World!!" with "Something else" using Indices -->
 
24
  <Glyphs
 
25
    OriginX="150"
 
26
    OriginY="30"
 
27
    FontUri="arial.ttf"
 
28
    FontRenderingEmSize="18"
 
29
    Fill="Orange"
 
30
    UnicodeString="Hello, World!!"
 
31
    Indices="54;82;80;72;87;75;76;81;74;3;72;79;86;72;"
 
32
  />
 
33
 
 
34
  <!-- Change the Advance of the W -->
 
35
  <Glyphs
 
36
    OriginX="10"
 
37
    OriginY="60"
 
38
    FontUri="arial.ttf"
 
39
    FontRenderingEmSize="18"
 
40
    Fill="Green"
 
41
    UnicodeString="Hello, World!!"
 
42
    Indices=";;;;;;;,150;"
 
43
  />
 
44
 
 
45
  <!-- Change the uOffset of the W -->
 
46
  <Glyphs
 
47
    OriginX="10"
 
48
    OriginY="90"
 
49
    FontUri="arial.ttf"
 
50
    FontRenderingEmSize="18"
 
51
    Fill="Blue"
 
52
    UnicodeString="Hello, World!!"
 
53
    Indices=";;;;;;;,,-20,;"
 
54
  />
 
55
 
 
56
  <!-- Change the vOffset of the W -->
 
57
  <Glyphs
 
58
    OriginX="10"
 
59
    OriginY="120"
 
60
    FontUri="arial.ttf"
 
61
    FontRenderingEmSize="18"
 
62
    Fill="Purple"
 
63
    UnicodeString="Hello, World!!"
 
64
    Indices=";;;;;;;,,,80;"
 
65
  />
 
66
 
 
67
  <!-- Change the Advance and uOffset of the W -->
 
68
  <Glyphs
 
69
    OriginX="10"
 
70
    OriginY="150"
 
71
    FontUri="arial.ttf"
 
72
    FontRenderingEmSize="18"
 
73
    Fill="MistyRose"
 
74
    UnicodeString="Hello, World!!"
 
75
    Indices=";;;;;;;,150,80;"
 
76
  />
 
77
 
 
78
  <!-- Replace "F-I" with the fi ligature -->
 
79
  <Glyphs
 
80
    OriginX="150"
 
81
    OriginY="60"
 
82
    FontUri="arial.ttf"
 
83
    FontRenderingEmSize="18"
 
84
    Fill="DarkBlue"
 
85
    UnicodeString="This is an F-I ligature"
 
86
    Indices=";;;;;;;;;;;(3:1)191"
 
87
  />
 
88
 
 
89
  <!-- Replace one string with another string of equal length -->
 
90
  <Glyphs
 
91
    OriginX="150"
 
92
    OriginY="90"
 
93
    FontUri="arial.ttf"
 
94
    FontRenderingEmSize="18"
 
95
    Fill="Magenta"
 
96
    UnicodeString="fubar, there!"
 
97
    Indices="(5:5)43;72;79;79;82;"
 
98
  />
 
99
 
 
100
  <!-- Replace a shorter string with a longer string -->
 
101
  <Glyphs
 
102
    OriginX="150"
 
103
    OriginY="120"
 
104
    FontUri="arial.ttf"
 
105
    FontRenderingEmSize="18"
 
106
    Fill="Cyan"
 
107
    UnicodeString="blah, there!"
 
108
    Indices="(4:5)43;72;79;79;82;"
 
109
  />
 
110
 
 
111
  <!-- Replace a longer string with a shorter string -->
 
112
  <Glyphs
 
113
    OriginX="150"
 
114
    OriginY="150"
 
115
    FontUri="arial.ttf"
 
116
    FontRenderingEmSize="18"
 
117
    Fill="CornflowerBlue"
 
118
    UnicodeString="superfly, there!"
 
119
    Indices="(8:5)43;72;79;79;82;"
 
120
  />
 
121
 
 
122
</Canvas>