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