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