Fix bug 79086

This commit is contained in:
Prokhorov Kirill
2026-02-05 18:57:33 +03:00
parent 63510a1fe9
commit 96ce3c22f1
2 changed files with 8 additions and 3 deletions

View File

@ -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);
}

View File

@ -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};