os/graphics/graphicstest/uibench/s60/src/tests_fonts/fontdefs.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/graphics/graphicstest/uibench/s60/src/tests_fonts/fontdefs.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,103 @@
     1.4 +// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +/**
    1.20 + @file
    1.21 + @test
    1.22 + @internalComponent - Internal Symbian test code 
    1.23 +*/
    1.24 +
    1.25 +#ifndef FONTDEFS_H
    1.26 +#define FONTDEFS_H
    1.27 +
    1.28 +/*
    1.29 + * The Series 60 Sans Font is a propietary font
    1.30 + * owned by Nokia.  It must be installed on target machines
    1.31 + * in order to run the test properly, i.e.
    1.32 + * epoc32/release/winscw/udeb/z/resource/fonts/s60ssb_v500.ttf
    1.33 + * needs to be present.  This is delivered by doing a test build
    1.34 + * of graphics/internaltestfonts
    1.35 + * When we switch over to a proper S60 SDK, this font will be
    1.36 + * standard.
    1.37 + */
    1.38 +_LIT(KNokiaSeries60Font, "Series 60 Sans");
    1.39 +
    1.40 +_LIT(KFullScreenSampleText,
    1.41 +"Marigold Flowers:\n\
    1.42 +\
    1.43 +Text from http://en.wikipedia.org/wiki/Tagetes\n\
    1.44 +\
    1.45 +Tagetes is a genus of 52 species of annual and perennial herbaceous plants in the daisy \
    1.46 +family (Asteraceae or Compositae). They are native to the area stretching from the \
    1.47 +southwestern United States into Mexico and south throughout South America.  \
    1.48 +They are known almost universally in North America as Marigold (not to be confused \
    1.49 +\
    1.50 +with the genus Calendula, which goes by the same name in some areas), or variously \
    1.51 +as Mexican marigolds (or cempasúchil), African marigolds (usually referring to cultivars \
    1.52 +and hybrids of T. erecta, although this species is not native to Africa), or \
    1.53 +French marigolds (usually referring to hybrids and cultivars of T. patula, many \
    1.54 +of which were developed in France although the species is not native to that country).  \
    1.55 +At least one species is a naturalized weed in Africa, Hawaii, and Australia. See \"marigold\" \
    1.56 +for other species commonly called marigold.\n\
    1.57 +Uses and Breeding\n\
    1.58 +\
    1.59 +The foliage has a musky/pungent scent, though some later varieties have been bred to be scentless. \
    1.60 +It is said to deter some common insect pests (although it is recorded as a food plant for some \
    1.61 +Lepidoptera larvae including Dot Moth), as well as nematodes. Tagetes are hence often used in \
    1.62 +companion planting. T. minuta (Khakibush), originally from South America, has been used as a \
    1.63 +source of essential oil, known as tagette, for the perfume industry as well as a flavourant \
    1.64 +in the food and tobacco industries in South Africa, where the species is also a useful \
    1.65 +pioneer plant in the reclamation of disturbed land. Some of the perennial species are deer, \
    1.66 +rabbit, rodent and javalina resistant. The petals of Tagetes are rich in the orange-yellow \
    1.67 +carotenoid lutein and as such extracts of T. erecta are used as a food colour (INS-Number E161b)"); 
    1.68 +
    1.69 +_LIT(KRightToLeftText,
    1.70 +"\x5d0\x5d1\x5d2\x5d3\x5d4\x5d5\x5d6\x5d7\x5d8\x5d9\x5da\x5db\x5dc\x5dd\x5de\x5df\n\
    1.71 +\x5e0\x5e1\x5e2\x5e3\x5e4\x5e5\x5e6\x5e7\x5e8\x5e9\x5ea\n\
    1.72 +\x621\x622\x623\x624\x625\x626\x627\x628\x629\x62a\x62b\x62c\x62d\x62e\x62f\n\
    1.73 +\x640\x641\x642\x643\x644\x645\x646\x647\x648\x649\x64a\x64b\x64c\x64d\x64e\x64f\n\
    1.74 +\x631\x632\x633\x634\x635\x636\x637\x638\x639\x63a\n");
    1.75 +
    1.76 +_LIT(KComplexFontsText,
    1.77 +"Class RWindow\n\
    1.78 +\n\
    1.79 +class RWindow : public RDrawableWindow;\n\
    1.80 +\n\
    1.81 +Description\n\
    1.82 +\n\
    1.83 +Handle to a standard window.\n\
    1.84 +\n\
    1.85 +An RWindow is a handle to a server-side window which can be \x3b1\x3b2\x3b3 displayed and drawn to,\
    1.86 +         and whose redraws are performed by the application. \x41a\x440\x43e\x43b\x438\x43a l\x151pices \n\
    1.87 +\n\
    1.88 +Derivation\n\
    1.89 +\n\
    1.90 +\x25cb MWsClientClass - Base class for all classes whose objects are clients of the window server.\n\
    1.91 +\x25a0 RWindowTreeNode - A handle to a node in the server-side window tree.\n\
    1.92 +\x25a0 RWindowBase - Client-side handle to a server-side window.\n\
    1.93 +\x25a0 RDrawableWindow - Handle to a drawable window.\n\
    1.94 +\x25a0 RWindow - Handle to a standard window.\n");
    1.95 +
    1.96 +enum TFullScreenTextPresentationStyle
    1.97 +    {
    1.98 +    EInsetMargin = 1,               // space 1 pixel around window that text sits inside
    1.99 +    EGapBetweenTextLines = 2,       // space between text lines
   1.100 +    ESideBearingsAllowance = 5,     // shorten the text line to accomodate "W" characters leaking out
   1.101 +    EMaximumTextLines = 100,        // screens won't be so big as to let us show 100 lines of text
   1.102 +    EBackgroundColor = 0xe7fed8,    // light green background
   1.103 +    EDesiredFontHeight = 13,        // font height for text lines
   1.104 +    };
   1.105 +
   1.106 +#endif