IDE: Fix case-sensitive default font name in Object Inspector in Win (issue #0031963)

git-svn-id: trunk@55221 -
This commit is contained in:
wp 2017-06-04 21:34:31 +00:00
parent d3f428a7d5
commit 31045c9646

View File

@ -850,7 +850,7 @@ begin
FontName := LogFont.lfFaceName;
TempLogFont := LogFont;
if FontName = DefFontData.Name then
if SameText(FontName, DefFontData.Name) then
begin
TempLogFontW.lfFaceName := UTF8ToUTF16(FMetrics.lfMessageFont.lfFaceName); // FMetrics must be UTF16
if TempLogFont.lfHeight = 0 then