fontservices/fontstore/tfs/T_FontBitmap.CPP
branchRCL_3
changeset 54 748ec5531811
parent 0 1fb32624e06b
child 55 336bee5c2d35
equal deleted inserted replaced
36:f902e87c146f 54:748ec5531811
   215 		TInt cells_count_old = iHeapOld->AllocSize(alloc_size_old);
   215 		TInt cells_count_old = iHeapOld->AllocSize(alloc_size_old);
   216 		INFO_PRINTF5(_L("CellsCntNew=%d, AllocSizeNew=%d  CellsCntOld=%d, AllocSizeOld=%d\r\n"), cells_count_new, alloc_size_new, cells_count_old, alloc_size_old);
   216 		INFO_PRINTF5(_L("CellsCntNew=%d, AllocSizeNew=%d  CellsCntOld=%d, AllocSizeOld=%d\r\n"), cells_count_new, alloc_size_new, cells_count_old, alloc_size_old);
   217 		INFO_PRINTF2(_L("Profit=%d bytes\r\n"), alloc_size_old - alloc_size_new);
   217 		INFO_PRINTF2(_L("Profit=%d bytes\r\n"), alloc_size_old - alloc_size_new);
   218 		for(TInt j=0;j<256;j++)
   218 		for(TInt j=0;j<256;j++)
   219 			{
   219 			{
       
   220             INFO_PRINTF2(_L("Char code %d"),j);
   220 			const TUint8* bytes_new = NULL;
   221 			const TUint8* bytes_new = NULL;
   221 			const TUint8* bytes_old = NULL;
   222 			const TUint8* bytes_old = NULL;
   222 			TBitmapFontCharacterMetrics metrics_new;
   223 			TBitmapFontCharacterMetrics metrics_new;
   223 			TBitmapFontCharacterMetrics metrics_old;
   224 			TBitmapFontCharacterMetrics metrics_old;
   224 			metrics_new = font_new->CharacterMetrics(j, bytes_new);
   225 			metrics_new = font_new->CharacterMetrics(j, bytes_new);
   244 					TInt res = data_new.Compare(data_old);
   245 					TInt res = data_new.Compare(data_old);
   245 					TEST(res == 0);
   246 					TEST(res == 0);
   246 					}
   247 					}
   247 				}
   248 				}
   248 			}
   249 			}
   249 		INFO_PRINTF1(_L(""));
       
   250 		CleanupStack::PopAndDestroy(2);  //font_new & font_old
   250 		CleanupStack::PopAndDestroy(2);  //font_new & font_old
   251 		}
   251 		}
   252 	CleanupStack::PopAndDestroy(5);  //fontstorefile & stream - old & new + fontstorefile_C
   252 	CleanupStack::PopAndDestroy(5);  //fontstorefile & stream - old & new + fontstorefile_C
   253 	}
   253 	}
   254 
   254