mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Fix bug 79086
This commit is contained in:
@ -40,7 +40,12 @@
|
||||
CPictFile::CPictFile()
|
||||
{
|
||||
m_pRenderer = NSGraphics::Create();
|
||||
m_pFontManager = NSFonts::NSFontManager::Create();
|
||||
NSFonts::IApplicationFonts* app_fonts = NSFonts::NSApplication::Create();
|
||||
app_fonts->Initialize();
|
||||
m_pFontManager = app_fonts->GenerateFontManager();
|
||||
NSFonts::IFontsCache* fonts_cache = NSFonts::NSFontCache::Create();
|
||||
fonts_cache->SetStreams(app_fonts->GetStreams());
|
||||
m_pFontManager->SetOwnerCache(fonts_cache);
|
||||
m_pRenderer->SetFontManager(m_pFontManager);
|
||||
}
|
||||
|
||||
|
||||
@ -257,8 +257,8 @@ private:
|
||||
CBgraFrame m_oFrame{};
|
||||
BYTE* m_pFrameData{nullptr};
|
||||
|
||||
size_t m_nPenHeight{0};
|
||||
size_t m_nPenWidth{0};
|
||||
size_t m_nPenHeight{1};
|
||||
size_t m_nPenWidth{1};
|
||||
|
||||
int m_nFontStyle{0};
|
||||
int m_nFontSize{0};
|
||||
|
||||
Reference in New Issue
Block a user