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