some letters disappear
This commit is contained in:
Kulikova Svetlana
2021-07-02 13:22:31 +03:00
parent 8a39c5470e
commit d2ff657b81
8 changed files with 51 additions and 35 deletions

View File

@ -464,10 +464,14 @@ namespace XPS
IFolder::CBuffer* buffer = NULL;
m_wsRootPath->read(wsFontPath, buffer);
m_pFontList->Check(wsFontName, buffer->Buffer, buffer->Size);
if (CApplicationFontStreams::m_pMemoryStorage)
CApplicationFontStreams::m_pMemoryStorage->Add(U_TO_UTF8(wsFontPath), buffer->Buffer, buffer->Size);
m_wsRootPath->write(wsFontPath, buffer->Buffer, buffer->Size);
delete buffer;
RELEASEOBJECT(buffer);
if (CApplicationFontStreams::m_pMemoryStorage)
{
m_wsRootPath->read(wsFontPath, buffer);
CApplicationFontStreams::m_pMemoryStorage->Add(U_TO_UTF8(wsFontPath), buffer->Buffer, buffer->Size);
RELEASEOBJECT(buffer);
}
}
wsFontPath = NormalizePath(wsFontPath);
pRenderer->put_FontPath(wsFontPath);