|
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @test |
|
19 @internalComponent - Internal Symbian test code |
|
20 */ |
|
21 |
|
22 #ifndef FONTDEFS_H |
|
23 #define FONTDEFS_H |
|
24 |
|
25 /* |
|
26 * The Series 60 Sans Font is a propietary font |
|
27 * owned by Nokia. It must be installed on target machines |
|
28 * in order to run the test properly, i.e. |
|
29 * epoc32/release/winscw/udeb/z/resource/fonts/s60ssb_v500.ttf |
|
30 * needs to be present. This is delivered by doing a test build |
|
31 * of graphics/internaltestfonts |
|
32 * When we switch over to a proper S60 SDK, this font will be |
|
33 * standard. |
|
34 */ |
|
35 _LIT(KNokiaSeries60Font, "Series 60 Sans"); |
|
36 |
|
37 _LIT(KFullScreenSampleText, |
|
38 "Marigold Flowers:\n\ |
|
39 \ |
|
40 Text from http://en.wikipedia.org/wiki/Tagetes\n\ |
|
41 \ |
|
42 Tagetes is a genus of 52 species of annual and perennial herbaceous plants in the daisy \ |
|
43 family (Asteraceae or Compositae). They are native to the area stretching from the \ |
|
44 southwestern United States into Mexico and south throughout South America. \ |
|
45 They are known almost universally in North America as Marigold (not to be confused \ |
|
46 \ |
|
47 with the genus Calendula, which goes by the same name in some areas), or variously \ |
|
48 as Mexican marigolds (or cempasúchil), African marigolds (usually referring to cultivars \ |
|
49 and hybrids of T. erecta, although this species is not native to Africa), or \ |
|
50 French marigolds (usually referring to hybrids and cultivars of T. patula, many \ |
|
51 of which were developed in France although the species is not native to that country). \ |
|
52 At least one species is a naturalized weed in Africa, Hawaii, and Australia. See \"marigold\" \ |
|
53 for other species commonly called marigold.\n\ |
|
54 Uses and Breeding\n\ |
|
55 \ |
|
56 The foliage has a musky/pungent scent, though some later varieties have been bred to be scentless. \ |
|
57 It is said to deter some common insect pests (although it is recorded as a food plant for some \ |
|
58 Lepidoptera larvae including Dot Moth), as well as nematodes. Tagetes are hence often used in \ |
|
59 companion planting. T. minuta (Khakibush), originally from South America, has been used as a \ |
|
60 source of essential oil, known as tagette, for the perfume industry as well as a flavourant \ |
|
61 in the food and tobacco industries in South Africa, where the species is also a useful \ |
|
62 pioneer plant in the reclamation of disturbed land. Some of the perennial species are deer, \ |
|
63 rabbit, rodent and javalina resistant. The petals of Tagetes are rich in the orange-yellow \ |
|
64 carotenoid lutein and as such extracts of T. erecta are used as a food colour (INS-Number E161b)"); |
|
65 |
|
66 _LIT(KRightToLeftText, |
|
67 "\x5d0\x5d1\x5d2\x5d3\x5d4\x5d5\x5d6\x5d7\x5d8\x5d9\x5da\x5db\x5dc\x5dd\x5de\x5df\n\ |
|
68 \x5e0\x5e1\x5e2\x5e3\x5e4\x5e5\x5e6\x5e7\x5e8\x5e9\x5ea\n\ |
|
69 \x621\x622\x623\x624\x625\x626\x627\x628\x629\x62a\x62b\x62c\x62d\x62e\x62f\n\ |
|
70 \x640\x641\x642\x643\x644\x645\x646\x647\x648\x649\x64a\x64b\x64c\x64d\x64e\x64f\n\ |
|
71 \x631\x632\x633\x634\x635\x636\x637\x638\x639\x63a\n"); |
|
72 |
|
73 _LIT(KComplexFontsText, |
|
74 "Class RWindow\n\ |
|
75 \n\ |
|
76 class RWindow : public RDrawableWindow;\n\ |
|
77 \n\ |
|
78 Description\n\ |
|
79 \n\ |
|
80 Handle to a standard window.\n\ |
|
81 \n\ |
|
82 An RWindow is a handle to a server-side window which can be \x3b1\x3b2\x3b3 displayed and drawn to,\ |
|
83 and whose redraws are performed by the application. \x41a\x440\x43e\x43b\x438\x43a l\x151pices \n\ |
|
84 \n\ |
|
85 Derivation\n\ |
|
86 \n\ |
|
87 \x25cb MWsClientClass - Base class for all classes whose objects are clients of the window server.\n\ |
|
88 \x25a0 RWindowTreeNode - A handle to a node in the server-side window tree.\n\ |
|
89 \x25a0 RWindowBase - Client-side handle to a server-side window.\n\ |
|
90 \x25a0 RDrawableWindow - Handle to a drawable window.\n\ |
|
91 \x25a0 RWindow - Handle to a standard window.\n"); |
|
92 |
|
93 enum TFullScreenTextPresentationStyle |
|
94 { |
|
95 EInsetMargin = 1, // space 1 pixel around window that text sits inside |
|
96 EGapBetweenTextLines = 2, // space between text lines |
|
97 ESideBearingsAllowance = 5, // shorten the text line to accomodate "W" characters leaking out |
|
98 EMaximumTextLines = 100, // screens won't be so big as to let us show 100 lines of text |
|
99 EBackgroundColor = 0xe7fed8, // light green background |
|
100 EDesiredFontHeight = 13, // font height for text lines |
|
101 }; |
|
102 |
|
103 #endif |