internal void SetFont (FontData font) { MenuItem.FontFamily = font.Family; MenuItem.FontSize = font.GetDeviceIndependentPixelSize(MenuItem); MenuItem.FontStyle = font.Style; MenuItem.FontWeight = font.Weight; MenuItem.FontStretch = font.Stretch; }
void SetWidgetFont(FontData font) { if (!(Widget is Control)) { return; } var control = (Control)Widget; control.FontFamily = font.Family; control.FontSize = font.GetDeviceIndependentPixelSize(control); control.FontStyle = font.Style; control.FontWeight = font.Weight; control.FontStretch = font.Stretch; }
void SetWidgetFont(FontData font) { if (!(Widget is Control)) return; var control = (Control)Widget; control.FontFamily = font.Family; control.FontSize = font.GetDeviceIndependentPixelSize (control); control.FontStyle = font.Style; control.FontWeight = font.Weight; control.FontStretch = font.Stretch; }
internal void SetFont (FontData font) { MenuItem.FontFamily = font.Family; MenuItem.FontSize = font.GetDeviceIndependentPixelSize(MenuItem); MenuItem.FontStyle = font.Style; MenuItem.FontWeight = font.Weight; MenuItem.FontStretch = font.Stretch; }