2 writes to logFont
System.Windows.Forms (2)
misc\GDI\WindowsFont.cs (2)
143this.logFont = new IntNativeMethods.LOGFONT(); 185this.logFont = lf;
25 references to logFont
System.Windows.Forms (25)
misc\GDI\WindowsFont.cs (25)
71Debug.Assert( this.logFont != null, "WindowsFont.logFont not initialized." ); 73this.hFont = IntUnsafeNativeMethods.CreateFontIndirect(this.logFont); 80this.logFont.lfFaceName = defaultFaceName; 81this.logFont.lfOutPrecision = IntNativeMethods.OUT_TT_ONLY_PRECIS; // True Type only. 83this.hFont = IntUnsafeNativeMethods.CreateFontIndirect(this.logFont); 93IntUnsafeNativeMethods.GetObject(new HandleRef(this, this.hFont), this.logFont); 157this.logFont.lfHeight = -pixelsY; 158this.logFont.lfFaceName = faceName != null ? faceName : defaultFaceName; 159this.logFont.lfCharSet = charSet; 160this.logFont.lfOutPrecision = IntNativeMethods.OUT_TT_PRECIS; 161this.logFont.lfQuality = (byte) fontQuality; 162this.logFont.lfWeight = (style & FontStyle.Bold) == FontStyle.Bold ? IntNativeMethods.FW_BOLD : IntNativeMethods.FW_NORMAL; 163this.logFont.lfItalic = (style & FontStyle.Italic) == FontStyle.Italic ? True : False; 164this.logFont.lfUnderline = (style & FontStyle.Underline) == FontStyle.Underline ? True : False; 165this.logFont.lfStrikeOut = (style & FontStyle.Strikeout) == FontStyle.Strikeout ? True : False; 187if (this.logFont.lfFaceName == null) 189this.logFont.lfFaceName = defaultFaceName; 380return new WindowsFont( this.logFont, true ); 385return string.Format(CultureInfo.CurrentCulture, "[{0}: Name={1}, Size={2} points, Height={3} pixels, Sytle={4}]", GetType().Name, logFont.lfFaceName, this.Size, this.Height, this.Style); 412return logFont.lfItalic == 1; 436return (WindowsFontQuality) this.logFont.lfQuality; 489return logFont.lfCharSet; 501return logFont.lfHeight; 512return logFont.lfFaceName; 540int height = this.logFont.lfHeight > 0 ? tm.tmHeight : (tm.tmHeight - tm.tmInternalLeading);