Merge remote-tracking branch 'origin/tizen' into new_text
[platform/core/uifw/dali-demo.git] / resources / scripts / formatted-text.json
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 {
18   // a tree of actors
19   "stage": [{
20     "type": "Actor",
21     "size": [400, 400, 1],
22     "parent-origin": "CENTER",
23     "actors": [{
24       "type": "TextView",
25       "size": [400, 400, 1],
26       "text": "<font size='8>Text with<br>\n<b>'markup-enabled':true</b></font>",
27       "markup-enabled": true,
28       "multiline-policy": "SplitByNewLineChar",
29       "horizontal-alignment": "HorizontalCenter",
30       "vertical-alignment": "VerticalBottom",
31       "width-exceed-policy": "Fade",
32       "line-justification": "Center",
33       "fade-boundary": [50, 50, 0, 0],
34       "line-height-offset": 25.0,
35       "parent-origin": "TOP_CENTER"
36     }, {
37       "type": "TextView",
38       "size": [400, 400, 1],
39       "text": "<font size='16'>Text with\n<b>'markup-enabled':false</b></font>",
40       "markup-enabled": false,
41       "multiline-policy": "SplitByWord",
42       "horizontal-alignment": "HorizontalLeft",
43       "vertical-alignment": "VerticalTop",
44       "width-exceed-policy": "ShrinkToFit",
45       "height-exceed-policy": "Original",
46       "line-justification": "Right",
47       "line-height-offset": 5.0,
48       "parent-origin": "BOTTOM_CENTER"
49     }]
50   }]
51 }