VCL TSpeedButton 在 Delphi 10.4.1 中不会改变字体大小

问题描述

我刚刚从 Delphi 10.3 升级到 Delphi 10.4.1,我尝试升级几个应用程序。除了一件事,他们似乎工作得很好。

TSpeedButton 拒绝更改字体大小,并且始终显示认大小为 8。

为了演示这个问题,我制作了一个新的 VCL TForm,有一个 TButton、一个 TBitBtn 和一个 TSpeedButton(左图),然后我将 TForm 的 Font.Size 更改为 11。TSpeedButton 忽略了它(中图)。然后我将 TSpeedButton 的 Font.Size 更改为 20。TSpeedButton 也忽略了这一点(右图)。

TSpeedButton font size bug

中图TSpeedButton的ParentFont为true,TSpeedButton的Font.Size正确显示为11。

有什么想法可以做什么吗?

解决方法

这是 Delphi 10.4.1 中的一个已知错误:https://quality.embarcadero.com/browse/RSP-30755

它应该在 10.4.2 中修复。