mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Use Arial font (if installed) when FontFace is invalid.
This commit is contained in:
parent
7a79e77051
commit
71025aaf51
@ -282,7 +282,17 @@ void CMeterString::Initialize()
|
||||
}
|
||||
else
|
||||
{
|
||||
m_Font = new Gdiplus::Font(FontFamily::GenericSansSerif (), size, style);
|
||||
// Use Arial if installed, else use a generic font
|
||||
FontFamily fFamily(L"Arial");
|
||||
|
||||
if (fFamily.IsAvailable())
|
||||
{
|
||||
m_Font = new Gdiplus::Font(&fFamily, size, style);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_Font = new Gdiplus::Font(FontFamily::GenericSansSerif(), size, style);
|
||||
}
|
||||
}
|
||||
|
||||
Status status = m_Font->GetLastStatus();
|
||||
|
Loading…
Reference in New Issue
Block a user