Fixed: Wrong font is used due to the font caching problem.

This commit is contained in:
spx
2009-10-11 13:03:20 +00:00
parent 04f485a02e
commit 07c9f62e40
2 changed files with 19 additions and 9 deletions

View File

@ -86,7 +86,7 @@ private:
std::vector<std::wstring> m_MeasureNames;
std::vector<CMeasure*> m_Measures;
static std::wstring FontPropertiesToString(Gdiplus::REAL size, Gdiplus::FontStyle style);
static std::wstring FontPropertiesToString(Gdiplus::FontFamily* fontFamily, Gdiplus::REAL size, Gdiplus::FontStyle style);
static std::map<std::wstring, Gdiplus::FontFamily*> c_FontFamilies; // Cache for the font families
static std::map<std::wstring, Gdiplus::Font*> c_Fonts; // Cache for the fonts
};