svgtopt/SVG/SVGEngine/inc/SvgBitmapFontProvider.h
changeset 46 88edb906c587
equal deleted inserted replaced
-1:000000000000 46:88edb906c587
       
     1 /*
       
     2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  SVG Bitmap Font Provider header file
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SVGBITMAPFONTPROVIDER_H
       
    20 #define SVGBITMAPFONTPROVIDER_H
       
    21 
       
    22 
       
    23 #include <fbs.h>
       
    24 #include <gdi.h>
       
    25 
       
    26 /**
       
    27  * Class description 
       
    28  */
       
    29 NONSHARABLE_CLASS( CSvgBitmapFontProvider ) : public CBase
       
    30     {
       
    31     
       
    32     private:
       
    33 
       
    34 		/*
       
    35 		* First Step of two phase construction for this class
       
    36 		* 
       
    37 		*/
       
    38 		CSvgBitmapFontProvider( const TFontSpec& aFontSpec ) ;
       
    39 		
       
    40 		/*
       
    41 		* Second Step of two phase construction for this class
       
    42 		* 
       
    43 		*/
       
    44     	void ConstructL();
       
    45     	
       
    46     	    	
       
    47     public:
       
    48         
       
    49         /*
       
    50 		* Destructor
       
    51 		* 
       
    52 		*/
       
    53     	~CSvgBitmapFontProvider();
       
    54     	
       
    55         /*
       
    56 		* Creates & returns object of this class
       
    57 		* 
       
    58 		*/
       
    59         static CSvgBitmapFontProvider* NewL( const TFontSpec& aFontSpec );
       
    60 
       
    61 		/*
       
    62 		* Creates & returns object of this class
       
    63 		* 
       
    64 		*/
       
    65         static CSvgBitmapFontProvider* NewLC( const TFontSpec& aFontSpec );
       
    66         
       
    67         /**
       
    68          * Releases a Font
       
    69          *
       
    70          * @since 1.0
       
    71          * @param aFont - Pointer to the font of type CFont* to be released
       
    72          */
       
    73         void ReleaseFont(CFont* aFont);
       
    74         
       
    75         /**
       
    76          * Releases a Font
       
    77          *
       
    78          * @since 1.0
       
    79          * @param aFont - Pointer to the font where the new font information has to be filed in
       
    80          * @param aFontSpec - Object representing Font Specification(s)
       
    81          */    
       
    82         TInt GetNearestFontToDesignHeightInTwips(CFont*& aFont, TFontSpec aFontSpec);
       
    83          
       
    84         
       
    85     //Data Members    
       
    86     private:
       
    87     		CFbsTypefaceStore *iTypeFaceStore;
       
    88     		TFontSpec iFontSpec;
       
    89     };
       
    90 
       
    91 #endif
       
    92