Slight change in font collection creation code

This commit is contained in:
Yousef Khadadeh 2025-11-20 13:03:21 +03:00
parent 22e68de4cd
commit d5d586092d

View file

@ -65,9 +65,9 @@ namespace DWriteCustomFontSets
void CustomFontSetManager::CreateFontCollectionFromFontSet() {
if(IDWriteFactory5_IsAvailable())
m_dwriteFactory5->CreateFontCollectionFromFontSet(m_customFontSet.Get(), m_customFontCollection.GetAddressOf());
m_dwriteFactory5->CreateFontCollectionFromFontSet(m_customFontSet.Get(), &m_customFontCollection);
else
m_dwriteFactory3->CreateFontCollectionFromFontSet(m_customFontSet.Get(), m_customFontCollection.GetAddressOf());
m_dwriteFactory3->CreateFontCollectionFromFontSet(m_customFontSet.Get(), &m_customFontCollection);
}
//**********************************************************************