public unsafe NativeFont_(int dpi, bool bold, bool italic, int height = 0) { Api.LOGFONT m = default; Dpi.SystemParametersInfo(Api.SPI_GETICONTITLELOGFONT, sizeof(Api.LOGFONT), &m, dpi); if (bold) { m.lfWeight = 700; } if (italic) { m.lfItalic = 1; } if (height != 0) { m.lfHeight = -Math2.MulDiv(height, dpi, 72); } _h = Api.CreateFontIndirect(m); }