(text: string, fontSize: number)
| 93 | } |
| 94 | |
| 95 | function prepareTitle(text: string, fontSize: number) { |
| 96 | let title = new Label(); |
| 97 | title.text = text; |
| 98 | title.height = 100; |
| 99 | title.backgroundColor = black; |
| 100 | title.color = white; |
| 101 | title.fontSize = fontSize; |
| 102 | title.style.fontStyle = 'italic'; |
| 103 | title.borderWidth = 1; |
| 104 | title.borderColor = white; |
| 105 | title.textAlignment = 'center'; |
| 106 | |
| 107 | return title; |
| 108 | } |
| 109 | |
| 110 | function prepareLabel(fontFamily: string, fontStyle: string, fontWeight: string): View { |
| 111 | let label = new Label(); |