graphicsapitest/graphicssvs/fntstore/scripts/GRAPHICS-FNTSTORE-BitmapFont-PublicApi.script
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 //
       
     2 // Copyright (c) 2005-2009 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:
       
    15 //
       
    16 //! @file
       
    17 //! @SYMTestSuiteName  GRAPHICS-FNTSTORE-BitmapFont-PublicApi
       
    18 //! @SYMScriptTestEnvironment
       
    19 
       
    20 /////////////////////////////////////////////////////////////////////
       
    21 // GRAPHICS-FNTSTORE-BitmapFont-PublicApi.script
       
    22 //
       
    23 // Tests all public elements of the CBitmapFont
       
    24 // classes as a means of confidence that the APIs work as expected.
       
    25 //
       
    26 // The purpose is to provide a regression test suite of PublishedAll APIs for CBitmapFont
       
    27 // The tests are fully automated.
       
    28 /////////////////////////////////////////////////////////////////////
       
    29 
       
    30 LOAD_SUITE      T_GraphicsFntstoreApi
       
    31 DELAY           1000
       
    32 
       
    33 
       
    34 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0001
       
    35 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0001
       
    36 //! @SYMAPI                 CBitmapFont::BitmapEncoding()
       
    37 //! @SYMAuthor              Forbes Fu
       
    38 //! @SYMCreationDate        15/04/2009
       
    39 //! @SYMTestCaseDesc        Get encoding value, using a bitmap font.
       
    40 //! @SYMTestActions         1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object.
       
    41 //!                         2. Add a font file specified in test data.
       
    42 //!                         3. Get a bitmap font.
       
    43 //!                         4. Call BitmapEncoding and check the return value.
       
    44 //!                         5. Release the font and remove the font file.
       
    45 //!                         6. Destroy the TAlgStyle object and the CFontStore object.
       
    46 //! @SYMTestStatus          Implemented
       
    47 //! @SYMTestPriority        High
       
    48 //! @SYMTestExpectedResults BitmapEncoding returns the expected value.
       
    49 //! @SYMTestType            CIT
       
    50     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
    51         CREATE_OBJECT       CFontStore      fntStore
       
    52         CREATE_OBJECT       CBitmapFont     bmpFont
       
    53         CREATE_OBJECT       TAlgStyle       algStyle
       
    54         COMMAND             fntStore        NewL
       
    55         COMMAND             algStyle        new
       
    56         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0001-AddFileL_command03
       
    57         COMMAND             fntStore        GetFontById                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0001-GetFontById_command04
       
    58         COMMAND             bmpFont         BitmapEncoding              GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0001-BitmapEncoding_command05
       
    59         COMMAND             fntStore        ReleaseFont                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0001-ReleaseFont_command06
       
    60         COMMAND             fntStore        RemoveFile
       
    61         COMMAND             algStyle        ~
       
    62         COMMAND             fntStore        ~
       
    63     END_TEST_BLOCK
       
    64 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0001
       
    65 
       
    66 
       
    67 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0002
       
    68 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0002
       
    69 //! @SYMAPI                 CBitmapFont::BitmapEncoding()
       
    70 //! @SYMAuthor              Forbes Fu
       
    71 //! @SYMCreationDate        15/04/2009
       
    72 //! @SYMTestCaseDesc        Get encoding value, using an open font.
       
    73 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
    74 //!                         2. Install a rasterizer and add a font file.
       
    75 //!                         3. Get an open font.
       
    76 //!                         4. Call BitmapEncoding and check the return value.
       
    77 //!                         5. Release the font and remove the font file.
       
    78 //!                         6. Destroy the CFontStore object.
       
    79 //! @SYMTestStatus          Implemented
       
    80 //! @SYMTestPriority        High
       
    81 //! @SYMTestExpectedResults BitmapEncoding returns the expected value.
       
    82 //! @SYMTestType            CIT
       
    83     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
    84         CREATE_OBJECT       CFontStore      fntStore
       
    85         CREATE_OBJECT       CBitmapFont     bmpFont
       
    86         COMMAND             fntStore        NewL
       
    87         COMMAND             fntStore        InstallRasterizerL                   GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0002-InstallRasterizerL_command02
       
    88         COMMAND             fntStore        AddFileL                             GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0002-AddFileL_command03
       
    89         COMMAND             fntStore        GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0002-GetNearestFontToDesignHeightInPixels_command04
       
    90         COMMAND             bmpFont         BitmapEncoding                       GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0002-BitmapEncoding_command05
       
    91         COMMAND             fntStore        ReleaseFont                          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0002-ReleaseFont_command06
       
    92         COMMAND             fntStore        RemoveFile
       
    93         COMMAND             fntStore        ~
       
    94     END_TEST_BLOCK
       
    95 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0002
       
    96 
       
    97 
       
    98 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0003
       
    99 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0003
       
   100 //! @SYMAPI                 CBitmapFont::CharacterMetrics(TInt, const TUint8{ptr}{ref})
       
   101 //! @SYMAuthor              Forbes Fu
       
   102 //! @SYMCreationDate        15/04/2009
       
   103 //! @SYMTestCaseDesc        Get a pointer to a bitmap and the metrics for a specified character, using a bitmap font.
       
   104 //! @SYMTestActions         1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object.
       
   105 //!                         2. Add a font file specified in test data.
       
   106 //!                         3. Get a bitmap font.
       
   107 //!                         4. Call CharacterMetrics with code 0 and check the return value.
       
   108 //!                         5. Call CharacterMetrics with code 33 and check the return value.
       
   109 //!                         6. Release the font and remove the font file.
       
   110 //!                         7. Destroy the TAlgStyle object and the CFontStore object.
       
   111 //! @SYMTestStatus          Implemented
       
   112 //! @SYMTestPriority        High
       
   113 //! @SYMTestExpectedResults 1. Both bitmap pointers are not NULL.
       
   114 //!                         2. Both returned metrics are expected.
       
   115 //! @SYMTestType            CIT
       
   116     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   117         CREATE_OBJECT       CFontStore      fntStore
       
   118         CREATE_OBJECT       CBitmapFont     bmpFont
       
   119         CREATE_OBJECT       TAlgStyle       algStyle
       
   120         COMMAND             fntStore        NewL
       
   121         COMMAND             algStyle        new
       
   122         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0003-AddFileL_command03        
       
   123         COMMAND             fntStore        GetFontById                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0003-GetFontById_command04
       
   124         COMMAND             bmpFont         CharacterMetrics            GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0003-CharacterMetrics_command05
       
   125         COMMAND             bmpFont         CharacterMetrics            GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0003-CharacterMetrics_command06
       
   126         COMMAND             fntStore        ReleaseFont                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0003-ReleaseFont_command07
       
   127         COMMAND             fntStore        RemoveFile
       
   128         COMMAND             algStyle        ~
       
   129         COMMAND             fntStore        ~
       
   130     END_TEST_BLOCK
       
   131 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0003
       
   132 
       
   133 
       
   134 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0004
       
   135 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0004
       
   136 //! @SYMAPI                 CBitmapFont::CharacterMetrics(TInt, const TUint8{ptr}{ref})
       
   137 //! @SYMAuthor              Forbes Fu
       
   138 //! @SYMCreationDate        15/04/2009
       
   139 //! @SYMTestCaseDesc        Negative case; Get a pointer to a bitmap and the metrics for a specified character with negative and big code, using a bitmap font.
       
   140 //! @SYMTestActions         1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object.
       
   141 //!                         2. Add a font file specified in test data.
       
   142 //!                         3. Get a bitmap font.
       
   143 //!                         4. Call CharacterMetrics with code -1 and check the return value.
       
   144 //!                         5. Call CharacterMetrics with code 99999 and check the return value.
       
   145 //!                         6. Release the font and remove the font file.
       
   146 //!                         7. Destroy the TAlgStyle object and the CFontStore object.
       
   147 //! @SYMTestStatus          Implemented
       
   148 //! @SYMTestPriority        High
       
   149 //! @SYMTestExpectedResults Both bitmap pointers are not NULL.
       
   150 //! @SYMTestType            CIT
       
   151     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   152         CREATE_OBJECT       CFontStore      fntStore
       
   153         CREATE_OBJECT       CBitmapFont     bmpFont
       
   154         CREATE_OBJECT       TAlgStyle       algStyle
       
   155         COMMAND             fntStore        NewL
       
   156         COMMAND             algStyle        new
       
   157         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0004-AddFileL_command03        
       
   158         COMMAND             fntStore        GetFontById                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0004-GetFontById_command04
       
   159         COMMAND             bmpFont         CharacterMetrics            GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0004-CharacterMetrics_command05
       
   160         COMMAND             bmpFont         CharacterMetrics            GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0004-CharacterMetrics_command06
       
   161         COMMAND             fntStore        ReleaseFont                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0004-ReleaseFont_command07
       
   162         COMMAND             fntStore        RemoveFile
       
   163         COMMAND             algStyle        ~
       
   164         COMMAND             fntStore        ~
       
   165     END_TEST_BLOCK
       
   166 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0004
       
   167 
       
   168 
       
   169 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0005
       
   170 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0005
       
   171 //! @SYMAPI                 CBitmapFont::CharacterMetrics(TInt, const TUint8{ptr}{ref})
       
   172 //! @SYMAuthor              Forbes Fu
       
   173 //! @SYMCreationDate        15/04/2009
       
   174 //! @SYMTestCaseDesc        Get a pointer to a bitmap and the metrics for a specified character, using an open font.
       
   175 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   176 //!                         2. Install a rasterizer and add a font file.
       
   177 //!                         3. Get an open font.
       
   178 //!                         4. Call CharacterMetrics and check the return value.
       
   179 //!                         5. Release the font and remove the font file.
       
   180 //!                         6. Destroy the CFontStore object.
       
   181 //! @SYMTestStatus          Implemented
       
   182 //! @SYMTestPriority        High
       
   183 //! @SYMTestExpectedResults Bitmap pointer is NULL.
       
   184 //! @SYMTestType            CIT
       
   185     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   186         CREATE_OBJECT       CFontStore      fntStore
       
   187         CREATE_OBJECT       CBitmapFont     bmpFont
       
   188         COMMAND             fntStore        NewL
       
   189         COMMAND             fntStore        InstallRasterizerL                   GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0005-InstallRasterizerL_command02
       
   190         COMMAND             fntStore        AddFileL                             GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0005-AddFileL_command03
       
   191         COMMAND             fntStore        GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0005-GetNearestFontToDesignHeightInPixels_command04
       
   192         COMMAND             bmpFont         CharacterMetrics                     GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0005-CharacterMetrics_command05
       
   193         COMMAND             fntStore        ReleaseFont                          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0005-ReleaseFont_command06
       
   194         COMMAND             fntStore        RemoveFile
       
   195         COMMAND             fntStore        ~
       
   196     END_TEST_BLOCK
       
   197 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0005
       
   198 
       
   199 
       
   200 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0006
       
   201 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0006
       
   202 //! @SYMAPI                 CBitmapFont::CharacterNeedsToBeRasterized(TInt, TInt)
       
   203 //! @SYMAuthor              Forbes Fu
       
   204 //! @SYMCreationDate        15/04/2009
       
   205 //! @SYMTestCaseDesc        Get whether the specified character needs to be rasterised, using an open font.
       
   206 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   207 //!                         2. Install a rasterizer and add a font file.
       
   208 //!                         3. Get an open font.
       
   209 //!                         4. Call CharacterNeedsToBeRasterized and check the return value.
       
   210 //!                         5. Release the font and remove the font file.
       
   211 //!                         6. Destroy the CFontStore object.
       
   212 //! @SYMTestStatus          Implemented
       
   213 //! @SYMTestPriority        High
       
   214 //! @SYMTestExpectedResults CharacterNeedsToBeRasterized returns the expected value.
       
   215 //! @SYMTestType            CIT
       
   216     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   217         CREATE_OBJECT       CFontStore      fntStore
       
   218         CREATE_OBJECT       CBitmapFont     bmpFont
       
   219         COMMAND             fntStore        NewL
       
   220         COMMAND             fntStore        InstallRasterizerL                   GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0006-InstallRasterizerL_command02
       
   221         COMMAND             fntStore        AddFileL                             GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0006-AddFileL_command03
       
   222         COMMAND             fntStore        GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0006-GetNearestFontToDesignHeightInPixels_command04
       
   223         COMMAND             bmpFont         CharacterNeedsToBeRasterized         GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0006-CharacterNeedsToBeRasterized_command05
       
   224         COMMAND             fntStore        ReleaseFont                          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0006-ReleaseFont_command06
       
   225         COMMAND             fntStore        RemoveFile
       
   226         COMMAND             fntStore        ~
       
   227     END_TEST_BLOCK
       
   228 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0006
       
   229 
       
   230 
       
   231 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0007
       
   232 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0007
       
   233 //! @SYMAPI                 CBitmapFont::CharacterNeedsToBeRasterized(TInt, TInt)
       
   234 //! @SYMAuthor              Forbes Fu
       
   235 //! @SYMCreationDate        15/04/2009
       
   236 //! @SYMTestCaseDesc        Get whether the specified character needs to be rasterised, using a bitmap font.
       
   237 //! @SYMTestActions         1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object.
       
   238 //!                         2. Add a font file specified in test data.
       
   239 //!                         3. Get a bitmap font.
       
   240 //!                         4. Call CharacterNeedsToBeRasterized and check the return value.
       
   241 //!                         5. Release the font and remove the font file.
       
   242 //!                         6. Destroy the TAlgStyle object and the CFontStore object.
       
   243 //! @SYMTestStatus          Implemented
       
   244 //! @SYMTestPriority        High
       
   245 //! @SYMTestExpectedResults CharacterNeedsToBeRasterized returns EFalse.
       
   246 //! @SYMTestType            CIT
       
   247     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   248         CREATE_OBJECT       CFontStore      fntStore
       
   249         CREATE_OBJECT       CBitmapFont     bmpFont
       
   250         CREATE_OBJECT       TAlgStyle       algStyle
       
   251         COMMAND             fntStore        NewL
       
   252         COMMAND             algStyle        new
       
   253         COMMAND             fntStore        AddFileL                     GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0007-AddFileL_command03
       
   254         COMMAND             fntStore        GetFontById                  GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0007-GetFontById_command04
       
   255         COMMAND             bmpFont         CharacterNeedsToBeRasterized GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0007-CharacterNeedsToBeRasterized_command05
       
   256         COMMAND             fntStore        ReleaseFont                  GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0007-ReleaseFont_command06
       
   257         COMMAND             fntStore        RemoveFile
       
   258         COMMAND             algStyle        ~
       
   259         COMMAND             fntStore        ~
       
   260     END_TEST_BLOCK
       
   261 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0007
       
   262 
       
   263 
       
   264 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008
       
   265 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008
       
   266 //! @SYMAPI                 CBitmapFont::CharacterNeedsToBeRasterized(TInt, TInt)
       
   267 //! @SYMAuthor              Forbes Fu
       
   268 //! @SYMCreationDate        15/04/2009
       
   269 //! @SYMTestCaseDesc        Negative case; Get whether the specified character with negative and big code needs to be rasterised, using an open font.
       
   270 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   271 //!                         2. Install a rasterizer and add a font file.
       
   272 //!                         3. Get an open font.
       
   273 //!                         4. Call CharacterNeedsToBeRasterized with code -1 and check the return value.
       
   274 //!                         5. Call CharacterNeedsToBeRasterized with code 99999 and check the return value.
       
   275 //!                         6. Release the font and remove the font file.
       
   276 //!                         7. Destroy the CFontStore object.
       
   277 //! @SYMTestStatus          Implemented
       
   278 //! @SYMTestPriority        High
       
   279 //! @SYMTestExpectedResults CharacterNeedsToBeRasterized returns the expected value at two steps.
       
   280 //! @SYMTestType            CIT
       
   281     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   282         CREATE_OBJECT       CFontStore      fntStore
       
   283         CREATE_OBJECT       CBitmapFont     bmpFont
       
   284         COMMAND             fntStore        NewL
       
   285         COMMAND             fntStore        InstallRasterizerL                   GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008-InstallRasterizerL_command02
       
   286         COMMAND             fntStore        AddFileL                             GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008-AddFileL_command03
       
   287         COMMAND             fntStore        GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008-GetNearestFontToDesignHeightInPixels_command04
       
   288         COMMAND             bmpFont         CharacterNeedsToBeRasterized         GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008-CharacterNeedsToBeRasterized_command05
       
   289         COMMAND             bmpFont         CharacterNeedsToBeRasterized         GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008-CharacterNeedsToBeRasterized_command06
       
   290         COMMAND             fntStore        ReleaseFont                          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008-ReleaseFont_command07
       
   291         COMMAND             fntStore        RemoveFile
       
   292         COMMAND             fntStore        ~
       
   293     END_TEST_BLOCK
       
   294 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0008
       
   295 
       
   296 
       
   297 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0011
       
   298 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0011
       
   299 //! @SYMAPI                 CBitmapFont::GetCharacterData(TInt, TInt, TOpenFontCharMetrics{ref}, const TUint8{ptr}{ref})
       
   300 //! @SYMAuthor              Forbes Fu
       
   301 //! @SYMCreationDate        15/04/2009
       
   302 //! @SYMTestCaseDesc        Get a pointer to a bitmap and the metrics for a specified character, using an open font.
       
   303 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   304 //!                         2. Install a rasterizer and add a font file.
       
   305 //!                         3. Get an open font.
       
   306 //!                         4. Call GetCharacterData and check the return value.
       
   307 //!                         5. Release the font and remove the font file.
       
   308 //!                         6. Destroy the CFontStore object.
       
   309 //! @SYMTestStatus          Implemented
       
   310 //! @SYMTestPriority        High
       
   311 //! @SYMTestExpectedResults GetCharacterData returns the expected value.
       
   312 //! @SYMTestType            CIT
       
   313     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   314         CREATE_OBJECT       CFontStore      fntStore
       
   315         CREATE_OBJECT       CBitmapFont     bmpFont
       
   316         COMMAND             fntStore        NewL
       
   317         COMMAND             fntStore        InstallRasterizerL                   GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0011-InstallRasterizerL_command02
       
   318         COMMAND             fntStore        AddFileL                             GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0011-AddFileL_command03
       
   319         COMMAND             fntStore        GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0011-GetNearestFontToDesignHeightInPixels_command04
       
   320         COMMAND             bmpFont         GetCharacterData                     GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0011-GetCharacterData_command05
       
   321         COMMAND             fntStore        ReleaseFont                          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0011-ReleaseFont_command06
       
   322         COMMAND             fntStore        RemoveFile
       
   323         COMMAND             fntStore        ~
       
   324     END_TEST_BLOCK
       
   325 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0011
       
   326 
       
   327 
       
   328 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0012
       
   329 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0012
       
   330 //! @SYMAPI                 CBitmapFont::GetCharacterData(TInt, TInt, TOpenFontCharMetrics{ref}, const TUint8{ptr}{ref})
       
   331 //! @SYMAuthor              Forbes Fu
       
   332 //! @SYMCreationDate        15/04/2009
       
   333 //! @SYMTestCaseDesc        Get a pointer to a bitmap and the metrics for a specified character, using a bitmap font.
       
   334 //! @SYMTestActions         1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object.
       
   335 //!                         2. Add a font file specified in test data.
       
   336 //!                         3. Get a bitmap font.
       
   337 //!                         4. Call GetCharacterData with code 0 and check the return value.
       
   338 //!                         5. Call GetCharacterData with code 330 and check the return value.
       
   339 //!                         6. Release the font and remove the font file.
       
   340 //!                         7. Destroy the TAlgStyle object and the CFontStore object.
       
   341 //! @SYMTestStatus          Implemented
       
   342 //! @SYMTestPriority        High
       
   343 //! @SYMTestExpectedResults 1. GetCharacterData returns ETrue at two steps.
       
   344 //!                         2. Both bitmap pointers are not NULL.
       
   345 //!                         3. Both metrics are expected.
       
   346 //! @SYMTestType            CIT
       
   347     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   348         CREATE_OBJECT       CFontStore      fntStore
       
   349         CREATE_OBJECT       CBitmapFont     bmpFont
       
   350         CREATE_OBJECT       TAlgStyle       algStyle
       
   351         COMMAND             fntStore        NewL
       
   352         COMMAND             algStyle        new
       
   353         COMMAND             fntStore        AddFileL                     GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0012-AddFileL_command03
       
   354         COMMAND             fntStore        GetFontById                  GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0012-GetFontById_command04
       
   355         COMMAND             bmpFont         GetCharacterData             GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0012-GetCharacterData_command05
       
   356         COMMAND             bmpFont         GetCharacterData             GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0012-GetCharacterData_command06
       
   357         COMMAND             fntStore        ReleaseFont                  GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0012-ReleaseFont_command07
       
   358         COMMAND             fntStore        RemoveFile
       
   359         COMMAND             algStyle        ~
       
   360         COMMAND             fntStore        ~
       
   361     END_TEST_BLOCK
       
   362 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0012
       
   363 
       
   364 
       
   365 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0013
       
   366 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0013
       
   367 //! @SYMAPI                 CBitmapFont::GetCharacterData(TInt, TInt, TOpenFontCharMetrics{ref}, const TUint8{ptr}{ref})
       
   368 //! @SYMAuthor              Forbes Fu
       
   369 //! @SYMCreationDate        15/04/2009
       
   370 //! @SYMTestCaseDesc        Negative case; Get a pointer to a bitmap and the metrics for a specified character with negative and big code, using a bitmap font.
       
   371 //! @SYMTestActions         1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object.
       
   372 //!                         2. Add a font file specified in test data.
       
   373 //!                         3. Get a bitmap font.
       
   374 //!                         4. Call GetCharacterData with code -1 and check the return value.
       
   375 //!                         5. Call GetCharacterData with code 99999 and check the return value.
       
   376 //!                         6. Release the font and remove the font file.
       
   377 //!                         7. Destroy the TAlgStyle object and the CFontStore object.
       
   378 //! @SYMTestStatus          Implemented
       
   379 //! @SYMTestPriority        High
       
   380 //! @SYMTestExpectedResults 1. GetCharacterData returns ETrue at two steps.
       
   381 //!                         2. Both bitmap pointers are not NULL.
       
   382 //! @SYMTestType            CIT
       
   383     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   384         CREATE_OBJECT       CFontStore      fntStore
       
   385         CREATE_OBJECT       CBitmapFont     bmpFont
       
   386         CREATE_OBJECT       TAlgStyle       algStyle
       
   387         COMMAND             fntStore        NewL
       
   388         COMMAND             algStyle        new
       
   389         COMMAND             fntStore        AddFileL                     GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0013-AddFileL_command03
       
   390         COMMAND             fntStore        GetFontById                  GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0013-GetFontById_command04
       
   391         COMMAND             bmpFont         GetCharacterData             GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0013-GetCharacterData_command05
       
   392         COMMAND             bmpFont         GetCharacterData             GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0013-GetCharacterData_command06
       
   393         COMMAND             fntStore        ReleaseFont                  GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0013-ReleaseFont_command07
       
   394         COMMAND             fntStore        RemoveFile
       
   395         COMMAND             algStyle        ~
       
   396         COMMAND             fntStore        ~
       
   397     END_TEST_BLOCK
       
   398 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0013
       
   399 
       
   400 
       
   401 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0014
       
   402 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0014
       
   403 //! @SYMAPI                 CBitmapFont::GetFaceAttrib(TOpenFontFaceAttrib{ref})
       
   404 //! @SYMAuthor              Forbes Fu
       
   405 //! @SYMCreationDate        15/04/2009
       
   406 //! @SYMTestCaseDesc        Get the open font typeface attributes, using an open font.
       
   407 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   408 //!                         2. Install a rasterizer and add a font file.
       
   409 //!                         3. Get an open font.
       
   410 //!                         4. Call GetFaceAttrib and check the return value.
       
   411 //!                         5. Release the font and remove the font file.
       
   412 //!                         6. Destroy the CFontStore object.
       
   413 //! @SYMTestStatus          Implemented
       
   414 //! @SYMTestPriority        High
       
   415 //! @SYMTestExpectedResults 1. GetFaceAttrib returns the expect value.
       
   416 //!                         2. Open font typeface attributes are expected.
       
   417 //! @SYMTestType            CIT
       
   418     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   419         CREATE_OBJECT       CFontStore      fntStore
       
   420         CREATE_OBJECT       CBitmapFont     bmpFont
       
   421         COMMAND             fntStore        NewL
       
   422         COMMAND             fntStore        InstallRasterizerL                   GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0014-InstallRasterizerL_command02
       
   423         COMMAND             fntStore        AddFileL                             GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0014-AddFileL_command03
       
   424         COMMAND             fntStore        GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0014-GetNearestFontToDesignHeightInPixels_command04
       
   425         COMMAND             bmpFont         GetFaceAttrib                        GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0014-GetFaceAttrib_command05
       
   426         COMMAND             fntStore        ReleaseFont                          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0014-ReleaseFont_command06
       
   427         COMMAND             fntStore        RemoveFile
       
   428         COMMAND             fntStore        ~
       
   429     END_TEST_BLOCK
       
   430 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0014
       
   431 
       
   432 
       
   433 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0015
       
   434 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0015
       
   435 //! @SYMAPI                 CBitmapFont::GetFaceAttrib(TOpenFontFaceAttrib{ref})
       
   436 //! @SYMAuthor              Forbes Fu
       
   437 //! @SYMCreationDate        15/04/2009
       
   438 //! @SYMTestCaseDesc        Get the open font typeface attributes, using a bitmap font.
       
   439 //! @SYMTestActions         1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object.
       
   440 //!                         2. Add a font file specified in test data.
       
   441 //!                         3. Get a bitmap font.
       
   442 //!                         4. Call GetFaceAttrib and check the return value.
       
   443 //!                         5. Release the font and remove the font file.
       
   444 //!                         6. Destroy the TAlgStyle object and the CFontStore object.
       
   445 //! @SYMTestStatus          Implemented
       
   446 //! @SYMTestPriority        High
       
   447 //! @SYMTestExpectedResults GetFaceAttrib returns EFalse.
       
   448 //! @SYMTestType            CIT
       
   449     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   450         CREATE_OBJECT       CFontStore      fntStore
       
   451         CREATE_OBJECT       CBitmapFont     bmpFont
       
   452         CREATE_OBJECT       TAlgStyle       algStyle
       
   453         COMMAND             fntStore        NewL
       
   454         COMMAND             algStyle        new
       
   455         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0015-AddFileL_command03
       
   456         COMMAND             fntStore        GetFontById                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0015-GetFontById_command04
       
   457         COMMAND             bmpFont         GetFaceAttrib               GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0015-GetFaceAttrib_command05
       
   458         COMMAND             fntStore        ReleaseFont                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0015-ReleaseFont_command06
       
   459         COMMAND             fntStore        RemoveFile
       
   460         COMMAND             algStyle        ~
       
   461         COMMAND             fntStore        ~
       
   462     END_TEST_BLOCK
       
   463 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0015
       
   464 
       
   465 
       
   466 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0016
       
   467 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0016
       
   468 //! @SYMAPI                 CBitmapFont::GetFontMetrics(TOpenFontMetrics{ref})
       
   469 //! @SYMAuthor              Forbes Fu
       
   470 //! @SYMCreationDate        15/04/2009
       
   471 //! @SYMTestCaseDesc        Get the open font metrics, using an open font.
       
   472 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   473 //!                         2. Install a rasterizer and add a font file.
       
   474 //!                         3. Get an open font.
       
   475 //!                         4. Call GetFontMetrics and check the return value.
       
   476 //!                         5. Release the font and remove the font file.
       
   477 //!                         6. Destroy the CFontStore object.
       
   478 //! @SYMTestStatus          Implemented
       
   479 //! @SYMTestPriority        High
       
   480 //! @SYMTestExpectedResults 1. GetFontMetrics returns the expect value.
       
   481 //!                         2. Open font metrics is expected.
       
   482 //! @SYMTestType            CIT
       
   483     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   484         CREATE_OBJECT       CFontStore      fntStore
       
   485         CREATE_OBJECT       CBitmapFont     bmpFont
       
   486         COMMAND             fntStore        NewL
       
   487         COMMAND             fntStore        InstallRasterizerL                   GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0016-InstallRasterizerL_command02
       
   488         COMMAND             fntStore        AddFileL                             GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0016-AddFileL_command03
       
   489         COMMAND             fntStore        GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0016-GetNearestFontToDesignHeightInPixels_command04
       
   490         COMMAND             bmpFont         GetFontMetrics                       GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0016-GetFontMetrics_command05
       
   491         COMMAND             fntStore        ReleaseFont                          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0016-ReleaseFont_command06
       
   492         COMMAND             fntStore        RemoveFile
       
   493         COMMAND             fntStore        ~
       
   494     END_TEST_BLOCK
       
   495 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0016
       
   496 
       
   497 
       
   498 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0017
       
   499 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0017
       
   500 //! @SYMAPI                 CBitmapFont::GetFontMetrics(TOpenFontMetrics{ref})
       
   501 //! @SYMAuthor              Forbes Fu
       
   502 //! @SYMCreationDate        15/04/2009
       
   503 //! @SYMTestCaseDesc        Get the open font metrics, using a bitmap font.
       
   504 //! @SYMTestActions         1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object.
       
   505 //!                         2. Add a font file specified in test data.
       
   506 //!                         3. Get a bitmap font.
       
   507 //!                         4. Call GetFontMetrics and check the return value.
       
   508 //!                         5. Release the font and remove the font file.
       
   509 //!                         6. Destroy the TAlgStyle object and the CFontStore object.
       
   510 //! @SYMTestStatus          Implemented
       
   511 //! @SYMTestPriority        High
       
   512 //! @SYMTestExpectedResults GetFontMetrics returns EFalse.
       
   513 //! @SYMTestType            CIT
       
   514     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   515         CREATE_OBJECT       CFontStore      fntStore
       
   516         CREATE_OBJECT       CBitmapFont     bmpFont
       
   517         CREATE_OBJECT       TAlgStyle       algStyle
       
   518         COMMAND             fntStore        NewL
       
   519         COMMAND             algStyle        new
       
   520         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0017-AddFileL_command03
       
   521         COMMAND             fntStore        GetFontById                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0017-GetFontById_command04
       
   522         COMMAND             bmpFont         GetFontMetrics              GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0017-GetFontMetrics_command05
       
   523         COMMAND             fntStore        ReleaseFont                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0017-ReleaseFont_command06
       
   524         COMMAND             fntStore        RemoveFile
       
   525         COMMAND             algStyle        ~
       
   526         COMMAND             fntStore        ~
       
   527     END_TEST_BLOCK
       
   528 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0017
       
   529 
       
   530 
       
   531 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0021
       
   532 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0021
       
   533 //! @SYMAPI                 CBitmapFont::GlyphBitmapType()
       
   534 //! @SYMAuthor              Forbes Fu
       
   535 //! @SYMCreationDate        15/04/2009
       
   536 //! @SYMTestCaseDesc        Get the anti-aliasing setting for the font, using an open font.
       
   537 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   538 //!                         2. Install a rasterizer and add a font file.
       
   539 //!                         3. Get an open font.
       
   540 //!                         4. Call GlyphBitmapType and check the return value.
       
   541 //!                         5. Release the font and remove the font file.
       
   542 //!                         6. Destroy the CFontStore object.
       
   543 //! @SYMTestStatus          Implemented
       
   544 //! @SYMTestPriority        High
       
   545 //! @SYMTestExpectedResults GlyphBitmapType returns the expected value.
       
   546 //! @SYMTestType            CIT
       
   547     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   548         CREATE_OBJECT       CFontStore      fntStore
       
   549         CREATE_OBJECT       CBitmapFont     bmpFont
       
   550         COMMAND             fntStore        NewL
       
   551         COMMAND             fntStore        InstallRasterizerL                   GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0021-InstallRasterizerL_command02
       
   552         COMMAND             fntStore        AddFileL                             GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0021-AddFileL_command03
       
   553         COMMAND             fntStore        GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0021-GetNearestFontToDesignHeightInPixels_command04
       
   554         COMMAND             bmpFont         GlyphBitmapType                      GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0021-GlyphBitmapType_command05
       
   555         COMMAND             fntStore        ReleaseFont                          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0021-ReleaseFont_command06
       
   556         COMMAND             fntStore        RemoveFile
       
   557         COMMAND             fntStore        ~
       
   558     END_TEST_BLOCK
       
   559 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0021
       
   560 
       
   561 
       
   562 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0022
       
   563 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0022
       
   564 //! @SYMAPI                 CBitmapFont::GlyphBitmapType()
       
   565 //! @SYMAuthor              Forbes Fu
       
   566 //! @SYMCreationDate        15/04/2009
       
   567 //! @SYMTestCaseDesc        Negative case; Get the anti-aliasing setting for the font, using a bitmap font.
       
   568 //! @SYMTestActions         1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object.
       
   569 //!                         2. Add a font file specified in test data.
       
   570 //!                         3. Get a bitmap font.
       
   571 //!                         4. Call GlyphBitmapType and check the return value.
       
   572 //!                         5. Release the font and remove the font file.
       
   573 //!                         6. Destroy the TAlgStyle object and the CFontStore object.
       
   574 //! @SYMTestStatus          Implemented
       
   575 //! @SYMTestPriority        High
       
   576 //! @SYMTestExpectedResults GlyphBitmapType returns the expected value.
       
   577 //! @SYMTestType            CIT
       
   578     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   579         CREATE_OBJECT       CFontStore      fntStore
       
   580         CREATE_OBJECT       CBitmapFont     bmpFont
       
   581         CREATE_OBJECT       TAlgStyle       algStyle
       
   582         COMMAND             fntStore        NewL
       
   583         COMMAND             algStyle        new
       
   584         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0022-AddFileL_command03
       
   585         COMMAND             fntStore        GetFontById                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0022-GetFontById_command04
       
   586         COMMAND             bmpFont         GlyphBitmapType             GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0022-GlyphBitmapType_command05
       
   587         COMMAND             fntStore        ReleaseFont                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0022-ReleaseFont_command06
       
   588         COMMAND             fntStore        RemoveFile
       
   589         COMMAND             algStyle        ~
       
   590         COMMAND             fntStore        ~
       
   591     END_TEST_BLOCK
       
   592 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0022
       
   593 
       
   594 
       
   595 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0023
       
   596 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0023
       
   597 //! @SYMAPI                 CBitmapFont::HasCharacterL(TInt)
       
   598 //! @SYMAuthor              Forbes Fu
       
   599 //! @SYMCreationDate        15/04/2009
       
   600 //! @SYMTestCaseDesc        Get the Bitmap encoding value, using an open font.
       
   601 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   602 //!                         2. Install a rasterizer and add a font file.
       
   603 //!                         3. Get an open font.
       
   604 //!                         4. Call GlyphBitmapType and check the return value.
       
   605 //!                         5. Release the font and remove the font file.
       
   606 //!                         6. Destroy the CFontStore object.
       
   607 //! @SYMTestStatus          Implemented
       
   608 //! @SYMTestPriority        High
       
   609 //! @SYMTestExpectedResults HasCharacterL returns the expected value.
       
   610 //! @SYMTestType            CIT
       
   611     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   612         CREATE_OBJECT       CFontStore      fntStore
       
   613         CREATE_OBJECT       CBitmapFont     bmpFont
       
   614         COMMAND             fntStore        NewL
       
   615         COMMAND             fntStore        InstallRasterizerL                   GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0023-InstallRasterizerL_command02
       
   616         COMMAND             fntStore        AddFileL                             GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0023-AddFileL_command03
       
   617         COMMAND             fntStore        GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0023-GetNearestFontToDesignHeightInPixels_command04
       
   618         COMMAND             bmpFont         HasCharacterL                        GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0023-HasCharacterL_command05
       
   619         COMMAND             fntStore        ReleaseFont                          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0023-ReleaseFont_command06
       
   620         COMMAND             fntStore        RemoveFile
       
   621         COMMAND             fntStore        ~
       
   622     END_TEST_BLOCK
       
   623 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0023
       
   624 
       
   625 
       
   626 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0024
       
   627 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0024
       
   628 //! @SYMAPI                 CBitmapFont::HasCharacterL(TInt)
       
   629 //! @SYMAuthor              Forbes Fu
       
   630 //! @SYMCreationDate        15/04/2009
       
   631 //! @SYMTestCaseDesc        Get the Bitmap encoding value, using a bitmap font.
       
   632 //! @SYMTestActions         1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object.
       
   633 //!                         2. Add a font file specified in test data.
       
   634 //!                         3. Get a bitmap font.
       
   635 //!                         4. Call HasCharacterL and check the return value.
       
   636 //!                         5. Release the font and remove the font file.
       
   637 //!                         6. Destroy the TAlgStyle object and the CFontStore object.
       
   638 //! @SYMTestStatus          Implemented
       
   639 //! @SYMTestPriority        High
       
   640 //! @SYMTestExpectedResults HasCharacterL returns the expected value.
       
   641 //! @SYMTestType            CIT
       
   642     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   643         CREATE_OBJECT       CFontStore      fntStore
       
   644         CREATE_OBJECT       CBitmapFont     bmpFont
       
   645         CREATE_OBJECT       TAlgStyle       algStyle
       
   646         COMMAND             fntStore        NewL
       
   647         COMMAND             algStyle        new
       
   648         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0024-AddFileL_command03
       
   649         COMMAND             fntStore        GetFontById                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0024-GetFontById_command04
       
   650         COMMAND             bmpFont         HasCharacterL               GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0024-HasCharacterL_command05
       
   651         COMMAND             fntStore        ReleaseFont                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0024-ReleaseFont_command06
       
   652         COMMAND             fntStore        RemoveFile
       
   653         COMMAND             algStyle        ~
       
   654         COMMAND             fntStore        ~
       
   655     END_TEST_BLOCK
       
   656 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0024
       
   657 
       
   658 
       
   659 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0025
       
   660 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0025
       
   661 //! @SYMAPI                 CBitmapFont::HasCharacterL(TInt)
       
   662 //! @SYMAuthor              Forbes Fu
       
   663 //! @SYMCreationDate        15/04/2009
       
   664 //! @SYMTestCaseDesc        Negative case; Get the Bitmap encoding value with negative and big code, using a bitmap font.
       
   665 //! @SYMTestActions         1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object.
       
   666 //!                         2. Add a font file specified in test data.
       
   667 //!                         3. Get a bitmap font.
       
   668 //!                         4. Call HasCharacterL with -1 and 99999 and check the return value.
       
   669 //!                         5. Release the font and remove the font file.
       
   670 //!                         6. Destroy the TAlgStyle object and the CFontStore object.
       
   671 //! @SYMTestStatus          Implemented
       
   672 //! @SYMTestPriority        High
       
   673 //! @SYMTestExpectedResults HasCharacterL returns the expected value.
       
   674 //! @SYMTestType            CIT
       
   675     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   676         CREATE_OBJECT       CFontStore      fntStore
       
   677         CREATE_OBJECT       CBitmapFont     bmpFont
       
   678         CREATE_OBJECT       TAlgStyle       algStyle
       
   679         COMMAND             fntStore        NewL
       
   680         COMMAND             algStyle        new
       
   681         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0025-AddFileL_command03
       
   682         COMMAND             fntStore        GetFontById                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0025-GetFontById_command04
       
   683         COMMAND             bmpFont         HasCharacterL               GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0025-HasCharacterL_command05
       
   684         COMMAND             bmpFont         HasCharacterL               GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0025-HasCharacterL_command06
       
   685         COMMAND             fntStore        ReleaseFont                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0025-ReleaseFont_command07
       
   686         COMMAND             fntStore        RemoveFile
       
   687         COMMAND             algStyle        ~
       
   688         COMMAND             fntStore        ~
       
   689     END_TEST_BLOCK
       
   690 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0025
       
   691 
       
   692 
       
   693 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0026
       
   694 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0026
       
   695 //! @SYMAPI                 CBitmapFont::IsOpenFont()
       
   696 //! @SYMAuthor              Forbes Fu
       
   697 //! @SYMCreationDate        15/04/2009
       
   698 //! @SYMTestCaseDesc        Return whether the bitmap font object is an open font, using an open font.
       
   699 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   700 //!                         2. Install a rasterizer and add a font file.
       
   701 //!                         3. Get an open font.
       
   702 //!                         4. Call IsOpenFont and check the return value.
       
   703 //!                         5. Release the font and remove the font file.
       
   704 //!                         6. Destroy the CFontStore object.
       
   705 //! @SYMTestStatus          Implemented
       
   706 //! @SYMTestPriority        High
       
   707 //! @SYMTestExpectedResults IsOpenFont returns ETrue.
       
   708 //! @SYMTestType            CIT
       
   709     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   710         CREATE_OBJECT       CFontStore      fntStore
       
   711         CREATE_OBJECT       CBitmapFont     bmpFont
       
   712         COMMAND             fntStore        NewL
       
   713         COMMAND             fntStore        InstallRasterizerL                   GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0026-InstallRasterizerL_command02
       
   714         COMMAND             fntStore        AddFileL                             GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0026-AddFileL_command03
       
   715         COMMAND             fntStore        GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0026-GetNearestFontToDesignHeightInPixels_command04
       
   716         COMMAND             bmpFont         IsOpenFont                           GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0026-IsOpenFont_command05
       
   717         COMMAND             fntStore        ReleaseFont                          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0026-ReleaseFont_command06
       
   718         COMMAND             fntStore        RemoveFile
       
   719         COMMAND             fntStore        ~
       
   720     END_TEST_BLOCK
       
   721 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0026
       
   722 
       
   723 
       
   724 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0027
       
   725 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0027
       
   726 //! @SYMAPI                 CBitmapFont::IsOpenFont()
       
   727 //! @SYMAuthor              Forbes Fu
       
   728 //! @SYMCreationDate        15/04/2009
       
   729 //! @SYMTestCaseDesc        Return whether the bitmap font object is an open font, using a bitmap font.
       
   730 //! @SYMTestActions         1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object.
       
   731 //!                         2. Add a font file specified in test data.
       
   732 //!                         3. Get a bitmap font.
       
   733 //!                         4. Call IsOpenFont and check the return value.
       
   734 //!                         5. Release the font and remove the font file.
       
   735 //!                         6. Destroy the TAlgStyle object and the CFontStore object.
       
   736 //! @SYMTestStatus          Implemented
       
   737 //! @SYMTestPriority        High
       
   738 //! @SYMTestExpectedResults IsOpenFont returns EFalse.
       
   739 //! @SYMTestType            CIT
       
   740     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   741         CREATE_OBJECT       CFontStore      fntStore
       
   742         CREATE_OBJECT       CBitmapFont     bmpFont
       
   743         CREATE_OBJECT       TAlgStyle       algStyle
       
   744         COMMAND             fntStore        NewL
       
   745         COMMAND             algStyle        new
       
   746         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0027-AddFileL_command03
       
   747         COMMAND             fntStore        GetFontById                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0027-GetFontById_command04
       
   748         COMMAND             bmpFont         IsOpenFont                  GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0027-IsOpenFont_command05
       
   749         COMMAND             fntStore        ReleaseFont                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0027-ReleaseFont_command06
       
   750         COMMAND             fntStore        RemoveFile
       
   751         COMMAND             algStyle        ~
       
   752         COMMAND             fntStore        ~
       
   753     END_TEST_BLOCK
       
   754 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0027
       
   755 
       
   756 
       
   757 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0031
       
   758 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0031
       
   759 //! @SYMAPI                 CBitmapFont::OpenFont()
       
   760 //! @SYMAuthor              Forbes Fu
       
   761 //! @SYMCreationDate        15/04/2009
       
   762 //! @SYMTestCaseDesc        Return a pointer to the open font being used by the bitmap font object, using an open font.
       
   763 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   764 //!                         2. Install a rasterizer and add a font file.
       
   765 //!                         3. Get an open font.
       
   766 //!                         4. Call OpenFont and check the return value.
       
   767 //!                         5. Release the font and remove the font file.
       
   768 //!                         6. Destroy the CFontStore object.
       
   769 //! @SYMTestStatus          Implemented
       
   770 //! @SYMTestPriority        High
       
   771 //! @SYMTestExpectedResults OpenFont returns a pointer to the open font.
       
   772 //! @SYMTestType            CIT
       
   773     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   774         CREATE_OBJECT       CFontStore      fntStore
       
   775         CREATE_OBJECT       CBitmapFont     bmpFont
       
   776         COMMAND             fntStore        NewL
       
   777         COMMAND             fntStore        InstallRasterizerL                   GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0031-InstallRasterizerL_command02
       
   778         COMMAND             fntStore        AddFileL                             GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0031-AddFileL_command03
       
   779         COMMAND             fntStore        GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0031-GetNearestFontToDesignHeightInPixels_command04
       
   780         COMMAND             bmpFont         OpenFont                             GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0031-OpenFont_command05
       
   781         COMMAND             fntStore        ReleaseFont                          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0031-ReleaseFont_command06
       
   782         COMMAND             fntStore        RemoveFile
       
   783         COMMAND             fntStore        ~
       
   784     END_TEST_BLOCK
       
   785 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0031
       
   786 
       
   787 
       
   788 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0032
       
   789 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0032
       
   790 //! @SYMAPI                 CBitmapFont::OpenFont()
       
   791 //! @SYMAuthor              Forbes Fu
       
   792 //! @SYMCreationDate        15/04/2009
       
   793 //! @SYMTestCaseDesc        Return a pointer to the open font being used by the bitmap font object, using a bitmap font.
       
   794 //! @SYMTestActions         1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object.
       
   795 //!                         2. Add a font file specified in test data.
       
   796 //!                         3. Get a bitmap font.
       
   797 //!                         4. Call OpenFont and check the return value.
       
   798 //!                         5. Release the font and remove the font file.
       
   799 //!                         6. Destroy the TAlgStyle object and the CFontStore object.
       
   800 //! @SYMTestStatus          Implemented
       
   801 //! @SYMTestPriority        High
       
   802 //! @SYMTestExpectedResults OpenFont returns a NULL pointer.
       
   803 //! @SYMTestType            CIT
       
   804     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   805         CREATE_OBJECT       CFontStore      fntStore
       
   806         CREATE_OBJECT       CBitmapFont     bmpFont
       
   807         CREATE_OBJECT       TAlgStyle       algStyle
       
   808         COMMAND             fntStore        NewL
       
   809         COMMAND             algStyle        new
       
   810         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0032-AddFileL_command03
       
   811         COMMAND             fntStore        GetFontById                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0032-GetFontById_command04
       
   812         COMMAND             bmpFont         OpenFont                    GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0032-OpenFont_command05
       
   813         COMMAND             fntStore        ReleaseFont                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0032-ReleaseFont_command06
       
   814         COMMAND             fntStore        RemoveFile
       
   815         COMMAND             algStyle        ~
       
   816         COMMAND             fntStore        ~
       
   817     END_TEST_BLOCK
       
   818 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0032
       
   819 
       
   820 
       
   821 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0033
       
   822 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0033
       
   823 //! @SYMAPI                 CBitmapFont::Rasterize(TInt, TInt, TOpenFontGlyphData{ptr})
       
   824 //! @SYMAuthor              Forbes Fu
       
   825 //! @SYMCreationDate        15/04/2009
       
   826 //! @SYMTestCaseDesc        Attempt to rasterize a character into a data area, using an open font.
       
   827 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   828 //!                         2. Install a rasterizer and add a font file.
       
   829 //!                         3. Get an open font.
       
   830 //!                         4. Call Rasterize and check the return value.
       
   831 //!                         5. Release the font and remove the font file.
       
   832 //!                         6. Destroy the CFontStore object.
       
   833 //! @SYMTestStatus          Implemented
       
   834 //! @SYMTestPriority        High
       
   835 //! @SYMTestExpectedResults Rasterize returns the expected value.
       
   836 //! @SYMTestType            CIT
       
   837     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   838         CREATE_OBJECT       CFontStore      fntStore
       
   839         CREATE_OBJECT       CBitmapFont     bmpFont
       
   840         COMMAND             fntStore        NewL
       
   841         COMMAND             fntStore        InstallRasterizerL                   GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0033-InstallRasterizerL_command02
       
   842         COMMAND             fntStore        AddFileL                             GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0033-AddFileL_command03
       
   843         COMMAND             fntStore        GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0033-GetNearestFontToDesignHeightInPixels_command04
       
   844         COMMAND             bmpFont         Rasterize                            GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0033-Rasterize_command05
       
   845         COMMAND             fntStore        ReleaseFont                          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0033-ReleaseFont_command06
       
   846         COMMAND             fntStore        RemoveFile
       
   847         COMMAND             fntStore        ~
       
   848     END_TEST_BLOCK
       
   849 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0033
       
   850 
       
   851 
       
   852 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0034
       
   853 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0034
       
   854 //! @SYMAPI                 CBitmapFont::Rasterize(TInt, TInt, TOpenFontGlyphData{ptr})
       
   855 //! @SYMAuthor              Forbes Fu
       
   856 //! @SYMCreationDate        15/04/2009
       
   857 //! @SYMTestCaseDesc        Negative case; Attempt to rasterize a character into a data area, using a bitmap font.
       
   858 //! @SYMTestActions         1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object.
       
   859 //!                         2. Add a font file specified in test data.
       
   860 //!                         3. Get a bitmap font.
       
   861 //!                         4. Call Rasterize and check the return value.
       
   862 //!                         5. Release the font and remove the font file.
       
   863 //!                         6. Destroy the TAlgStyle object and the CFontStore object.
       
   864 //! @SYMTestStatus          Implemented
       
   865 //! @SYMTestPriority        High
       
   866 //! @SYMTestExpectedResults Rasterize returns the expected value.
       
   867 //! @SYMTestType            CIT
       
   868     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   869         CREATE_OBJECT       CFontStore      fntStore
       
   870         CREATE_OBJECT       CBitmapFont     bmpFont
       
   871         CREATE_OBJECT       TAlgStyle       algStyle
       
   872         COMMAND             fntStore        NewL
       
   873         COMMAND             algStyle        new
       
   874         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0034-AddFileL_command03
       
   875         COMMAND             fntStore        GetFontById                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0034-GetFontById_command04
       
   876         COMMAND             bmpFont         Rasterize                   GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0034-Rasterize_command05
       
   877         COMMAND             fntStore        ReleaseFont                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0034-ReleaseFont_command06
       
   878         COMMAND             fntStore        RemoveFile
       
   879         COMMAND             algStyle        ~
       
   880         COMMAND             fntStore        ~
       
   881     END_TEST_BLOCK
       
   882 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0034
       
   883 
       
   884 
       
   885 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0035
       
   886 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0035
       
   887 //! @SYMAPI                 CBitmapFont::UniqueFontId()
       
   888 //! @SYMAuthor              Forbes Fu
       
   889 //! @SYMCreationDate        15/04/2009
       
   890 //! @SYMTestCaseDesc        Get unique font id, using an open font.
       
   891 //! @SYMTestActions         1. Create a CFontStore object and a CBitmapFont object.
       
   892 //!                         2. Install a rasterizer and add a font file.
       
   893 //!                         3. Get an open font.
       
   894 //!                         4. Call UniqueFontId and check the return value.
       
   895 //!                         5. Release the font and remove the font file.
       
   896 //!                         6. Destroy the CFontStore object.
       
   897 //! @SYMTestStatus          Implemented
       
   898 //! @SYMTestPriority        High
       
   899 //! @SYMTestExpectedResults UniqueFontId returns the expected value.
       
   900 //! @SYMTestType            CIT
       
   901     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   902         CREATE_OBJECT       CFontStore      fntStore
       
   903         CREATE_OBJECT       CBitmapFont     bmpFont
       
   904         COMMAND             fntStore        NewL
       
   905         COMMAND             fntStore        InstallRasterizerL                   GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0035-InstallRasterizerL_command02
       
   906         COMMAND             fntStore        AddFileL                             GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0035-AddFileL_command03
       
   907         COMMAND             fntStore        GetNearestFontToDesignHeightInPixels GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0035-GetNearestFontToDesignHeightInPixels_command04
       
   908         COMMAND             bmpFont         UniqueFontId                         GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0035-UniqueFontId_command05
       
   909         COMMAND             fntStore        ReleaseFont                          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0035-ReleaseFont_command06
       
   910         COMMAND             fntStore        RemoveFile
       
   911         COMMAND             fntStore        ~
       
   912     END_TEST_BLOCK
       
   913 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0035
       
   914 
       
   915 
       
   916 START_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0036
       
   917 //! @SYMTestCaseID          GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0036
       
   918 //! @SYMAPI                 CBitmapFont::UniqueFontId()
       
   919 //! @SYMAuthor              Forbes Fu
       
   920 //! @SYMCreationDate        15/04/2009
       
   921 //! @SYMTestCaseDesc        Get unique font id, using a bitmap font.
       
   922 //! @SYMTestActions         1. Create a CFontStore object, a TAlgStyle object and a CBitmapFont object.
       
   923 //!                         2. Add a font file specified in test data.
       
   924 //!                         3. Get a bitmap font.
       
   925 //!                         4. Call UniqueFontId and check the return value.
       
   926 //!                         5. Release the font and remove the font file.
       
   927 //!                         6. Destroy the TAlgStyle object and the CFontStore object.
       
   928 //! @SYMTestStatus          Implemented
       
   929 //! @SYMTestPriority        High
       
   930 //! @SYMTestExpectedResults UniqueFontId returns the expected value.
       
   931 //! @SYMTestType            CIT
       
   932     START_TEST_BLOCK    10  T_GraphicsFntstoreApi   \graphics\GRAPHICS-FNTSTORE-BitmapFont-PublicApi.ini
       
   933         CREATE_OBJECT       CFontStore      fntStore
       
   934         CREATE_OBJECT       CBitmapFont     bmpFont
       
   935         CREATE_OBJECT       TAlgStyle       algStyle
       
   936         COMMAND             fntStore        NewL
       
   937         COMMAND             algStyle        new
       
   938         COMMAND             fntStore        AddFileL                    GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0036-AddFileL_command03
       
   939         COMMAND             fntStore        GetFontById                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0036-GetFontById_command04
       
   940         COMMAND             bmpFont         UniqueFontId                GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0036-UniqueFontId_command05
       
   941         COMMAND             fntStore        ReleaseFont                 GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0036-ReleaseFont_command06
       
   942         COMMAND             fntStore        RemoveFile
       
   943         COMMAND             algStyle        ~
       
   944         COMMAND             fntStore        ~
       
   945     END_TEST_BLOCK
       
   946 END_TESTCASE GRAPHICS-FNTSTORE-BitmapFont-PublicApi-0036
       
   947