Slight change in font collection creation code
This commit is contained in:
parent
22e68de4cd
commit
d5d586092d
1 changed files with 2 additions and 2 deletions
|
|
@ -65,9 +65,9 @@ namespace DWriteCustomFontSets
|
||||||
|
|
||||||
void CustomFontSetManager::CreateFontCollectionFromFontSet() {
|
void CustomFontSetManager::CreateFontCollectionFromFontSet() {
|
||||||
if(IDWriteFactory5_IsAvailable())
|
if(IDWriteFactory5_IsAvailable())
|
||||||
m_dwriteFactory5->CreateFontCollectionFromFontSet(m_customFontSet.Get(), m_customFontCollection.GetAddressOf());
|
m_dwriteFactory5->CreateFontCollectionFromFontSet(m_customFontSet.Get(), &m_customFontCollection);
|
||||||
else
|
else
|
||||||
m_dwriteFactory3->CreateFontCollectionFromFontSet(m_customFontSet.Get(), m_customFontCollection.GetAddressOf());
|
m_dwriteFactory3->CreateFontCollectionFromFontSet(m_customFontSet.Get(), &m_customFontCollection);
|
||||||
}
|
}
|
||||||
|
|
||||||
//**********************************************************************
|
//**********************************************************************
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue