_IFont::Glyph* pGlyph;
pEnum->GetCurrent(pGlyph);
- pBaseFont->UnloadGlyph(&pGlyph);
+ delete[] (char*) pGlyph;
+
+ // bidi cache underdevelop
+ //pBaseFont->UnloadGlyph(&pGlyph);
}
delete pEnum;
_IFont::Glyph* pGlyph;
pEnum->GetCurrent(pGlyph);
- pBaseFont->UnloadGlyph(&pGlyph);
+ delete[] (char*) pGlyph;
+
+ // bidi cache underdevelop
+ //pBaseFont->UnloadGlyph(&pGlyph);
}
delete pEnum;
FT_UInt glyph_index = auxInfo.glyphIndex;
- _IFont::Glyph *pFontGlyphData;
-
- bool rtn = FindCache(glyph_index, __fontAttrib.size, __fontAttrib.style, &pFontGlyphData);
-
- if (rtn)
- {
- out.Add(pFontGlyphData);
- continue;
- }
+ // bidi cache underdevelop
+ //_IFont::Glyph *pFontGlyphData;
+ //
+ //bool rtn = FindCache(glyph_index, __fontAttrib.size, __fontAttrib.style, &pFontGlyphData);
+ //
+ //if (rtn)
+ //{
+ // out.Add(pFontGlyphData);
+ // continue;
+ //}
if (isSynthetic)
{
image.bytesPerLine = pSlot->bitmap.pitch;
image.pBitmap = pSlot->bitmap.buffer;
- pFontGlyphData = (_IFont::Glyph*) new (std::nothrow) char[sizeof(_IFont::Glyph) + (image.bytesPerLine * image.height)];
+ _IFont::Glyph *pFontGlyphData = (_IFont::Glyph*) new (std::nothrow) char[sizeof(_IFont::Glyph) + (image.bytesPerLine * image.height)];
if (pFontGlyphData == null)
{
out.Add(pFontGlyphData);
- AddCache(glyph_index, __fontAttrib.size, __fontAttrib.style, pFontGlyphData);
-
- if (pFontGlyphData != null)
- {
- pFontGlyphData->hasOwnerShip = 1;
- }
+ // bidi cache underdevelop
+ //AddCache(glyph_index, __fontAttrib.size, __fontAttrib.style, pFontGlyphData);
+ //
+ //if (pFontGlyphData != null)
+ //{
+ // pFontGlyphData->hasOwnerShip = 1;
+ //}
}
return true;