Change-Id: If1d14c95fec00da0d467dca6af449d42e723ac3c
Signed-off-by: Sungyeon Woo <s.woo@samsung.com>
if (rtn)
{
- out.Add(pFontGlyphData);
+ int bufferSize = sizeof(_IFont::Glyph) + (pFontGlyphData->image.bytesPerLine * pFontGlyphData->image.height);
+
+ _IFont::Glyph* pTempGlyphData = (_IFont::Glyph*) new (std::nothrow) char[bufferSize];
+
+ if (pTempGlyphData)
+ {
+ memcpy(pTempGlyphData, pFontGlyphData, bufferSize);
+
+ pTempGlyphData->image.pBitmap = (unsigned char*)(pTempGlyphData + 1);
+ pTempGlyphData->hasOwnerShip = 1;
+
+ out.Add(pTempGlyphData);
+ }
+
continue;
}