public void SetFont(String fontName, int fontSize) { m_Renderer.SetFont(fontName, fontSize); // Long appt height to match Calendar in core app int fontHeight = 0; if (DPIScaling.WantScaling()) { fontHeight = m_Renderer.BaseFont.Height; } else { fontHeight = Win32.GetPixelHeight(m_Renderer.BaseFont.ToHfont()); } int itemHeight = (fontHeight + 6 - longAppointmentSpacing); LongAppointmentHeight = Math.Max(itemHeight, 17); }
public void SetFont(String fontName, int fontSize) { m_Renderer.SetFont(fontName, fontSize); LongAppointmentHeight = Math.Max(m_Renderer.BaseFont.Height + 4, 17); }