nm.cbSize := sizeof(NONCLIENTMETRICS);
SystemParametersInfo(SPI_GETNONCLIENTMETRICS, 0, @nm, 0);
lf := nm.lfMenuFont;
- Font.Handle := CreateFontIndirect(lf);
+ Font.Name := lf.lfFaceName;
+ Font.Height := lf.lfHeight;
Font.Style := [];
if lf.lfWeight >= 700 then
Font.Style := Font.Style + [fsBold];