Exemple #1
0
		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;
		}
Exemple #2
0
        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;
        }
Exemple #3
0
        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;
        }
Exemple #4
0
		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;
		}