2 writes to lfWeight
System.Windows.Forms (1)
System\Windows\Forms\Rendering\FontCache.Data.cs (1)
94
lfWeight
= (int)((font.Style & FontStyle.Bold) == FontStyle.Bold ? FW.BOLD : FW.NORMAL),
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\Automation\UiaTextRangeTests.cs (1)
1223
LOGFONTW logfont = new() {
lfWeight
= (int)fontWeight };
7 references to lfWeight
System.Windows.Forms (5)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3615
sWeight = (short)logfont.
lfWeight
,
System\Windows\Forms\ActiveX\Control.ActiveXFontMarshaler.cs (1)
42
sWeight = (short)logFont.
lfWeight
,
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (3)
127
if (target->Weight != (short)logfont.
lfWeight
)
129
target->Weight = (short)logfont.
lfWeight
;
133
bool isBold = logfont.
lfWeight
>= (int)FW.BOLD;
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Automation\UiaTextRange.cs (1)
892
private 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
}";