2 writes to lfWeight
System.Windows.Forms (1)
System\Windows\Forms\Rendering\FontCache.Data.cs (1)
94lfWeight = (int)((font.Style & FontStyle.Bold) == FontStyle.Bold ? FW.BOLD : FW.NORMAL),
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\Automation\UiaTextRangeTests.cs (1)
1223LOGFONTW logfont = new() { lfWeight = (int)fontWeight };
7 references to lfWeight
System.Windows.Forms (5)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3615sWeight = (short)logfont.lfWeight,
System\Windows\Forms\ActiveX\Control.ActiveXFontMarshaler.cs (1)
42sWeight = (short)logFont.lfWeight,
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (3)
127if (target->Weight != (short)logfont.lfWeight) 129target->Weight = (short)logfont.lfWeight; 133bool isBold = logfont.lfWeight >= (int)FW.BOLD;
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Automation\UiaTextRange.cs (1)
892private static int GetFontWeight(LOGFONTW logfont) => logfont.lfWeight;
System.Windows.Forms.Primitives.TestUtilities (1)
Metafiles\RecordTypes\EMREXTCREATEFONTINDIRECTW.cs (1)
18=> $@"[{nameof(EMREXTCREATEFONTINDIRECTW)}] Index: {ihFont} FaceName: '{elfw.elfLogFont.FaceName.ToString()}' Height: {elfw.elfLogFont.lfHeight} Weight: FW_{elfw.elfLogFont.lfWeight}";