1 instantiation of LOGFONTW
System.Windows.Forms (1)
System\Windows\Forms\Rendering\FontCache.Data.cs (1)
89
LOGFONTW logFont =
new
()
51 references to LOGFONTW
System.Drawing.Common (5)
System\Drawing\Font.cs (3)
311
PInvokeGdiPlus.GdipGetLogFont(NativeFont, graphics.Pointer(), (
LOGFONTW
*)lf).ThrowIfFailed();
590
status = PInvokeGdiPlus.GdipCreateFontFromLogfont((HDC)hdc, (
LOGFONTW
*)lf, &font);
719
HFONT handle = PInvokeCore.CreateFontIndirect((
LOGFONTW
*)&lf);
System\Drawing\SystemFonts.cs (2)
267
private static Font GetFontFromData(in
LOGFONTW
logFont) =>
268
GetFontFromData(Unsafe.As<
LOGFONTW
, LOGFONT>(ref Unsafe.AsRef(in logFont)));
System.Private.Windows.Core (9)
_generated\177\Windows.Win32.NONCLIENTMETRICSW.g.cs (5)
50
internal winmdroot.Graphics.Gdi.
LOGFONTW
lfCaptionFont;
59
internal winmdroot.Graphics.Gdi.
LOGFONTW
lfSmCaptionFont;
68
internal winmdroot.Graphics.Gdi.
LOGFONTW
lfMenuFont;
71
internal winmdroot.Graphics.Gdi.
LOGFONTW
lfStatusFont;
74
internal winmdroot.Graphics.Gdi.
LOGFONTW
lfMessageFont;
_generated\195\Windows.Win32.PInvokeCore.GDI32.dll.g.cs (4)
278
/// <inheritdoc cref="CreateFontIndirect(winmdroot.Graphics.Gdi.
LOGFONTW
*)"/>
280
internal static unsafe winmdroot.Graphics.Gdi.HFONT CreateFontIndirect(in winmdroot.Graphics.Gdi.
LOGFONTW
lplf)
282
fixed (winmdroot.Graphics.Gdi.
LOGFONTW
* lplfLocal = &lplf)
300
internal static extern unsafe winmdroot.Graphics.Gdi.HFONT CreateFontIndirect(winmdroot.Graphics.Gdi.
LOGFONTW
* lplf);
System.Private.Windows.GdiPlus (8)
_generated\60\Windows.Win32.PInvokeGdiPlus.gdiplus.dll.g.cs (8)
1076
/// <inheritdoc cref="GdipCreateFontFromLogfont(winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.
LOGFONTW
*, winmdroot.Graphics.GdiPlus.GpFont**)"/>
1077
internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateFontFromLogfont(winmdroot.Graphics.Gdi.HDC hdc, in winmdroot.Graphics.Gdi.
LOGFONTW
logfont, ref winmdroot.Graphics.GdiPlus.GpFont* font)
1081
fixed (winmdroot.Graphics.Gdi.
LOGFONTW
* logfontLocal = &logfont)
1090
internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateFontFromLogfont(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.
LOGFONTW
* logfont, winmdroot.Graphics.GdiPlus.GpFont** font);
4115
/// <inheritdoc cref="GdipGetLogFont(winmdroot.Graphics.GdiPlus.GpFont*, winmdroot.Graphics.GdiPlus.GpGraphics*, winmdroot.Graphics.Gdi.
LOGFONTW
*)"/>
4116
internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipGetLogFont(ref winmdroot.Graphics.GdiPlus.GpFont font, ref winmdroot.Graphics.GdiPlus.GpGraphics graphics, ref winmdroot.Graphics.Gdi.
LOGFONTW
logfontW)
4118
fixed (winmdroot.Graphics.Gdi.
LOGFONTW
* logfontWLocal = &logfontW)
4132
internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipGetLogFont(winmdroot.Graphics.GdiPlus.GpFont* font, winmdroot.Graphics.GdiPlus.GpGraphics* graphics, winmdroot.Graphics.Gdi.
LOGFONTW
* logfontW);
System.Windows.Forms (10)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (1)
60
public override
LOGFONTW
Logfont => _owningControl.TryGetTarget(out Control? target) ? target.Font.ToLogicalFont() : default;
System\Windows\Forms\ActiveX\AxHost.cs (1)
3607
LOGFONTW
logfont = font.ToLogicalFont();
System\Windows\Forms\ActiveX\Control.ActiveXFontMarshaler.cs (1)
33
LOGFONTW
logFont = font.ToLogicalFont();
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (1)
125
LOGFONTW
logfont = source.ToLogicalFont();
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (1)
91
public override
LOGFONTW
Logfont
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2743
LOGFONTW
logFont = value.ToLogicalFont();
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
263
public override
LOGFONTW
Logfont
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (2)
384
LOGFONTW
logFont = Font.ToLogicalFont(graphics);
425
UpdateFont(ref Unsafe.As<
LOGFONTW
, LOGFONT>(ref logFont));
System\Windows\Forms\Rendering\FontCache.Data.cs (1)
89
LOGFONTW
logFont = new()
System.Windows.Forms.Primitives (19)
_generated\426\Windows.Win32.PInvoke.UXTHEME.dll.g.cs (4)
631
/// <inheritdoc cref="GetThemeFont(winmdroot.UI.Controls.HTHEME, winmdroot.Graphics.Gdi.HDC, int, int, int, winmdroot.Graphics.Gdi.
LOGFONTW
*)"/>
633
internal static unsafe winmdroot.Foundation.HRESULT GetThemeFont(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, int iPropId, out winmdroot.Graphics.Gdi.
LOGFONTW
pFont)
635
fixed (winmdroot.Graphics.Gdi.
LOGFONTW
* pFontLocal = &pFont)
676
internal static extern unsafe winmdroot.Foundation.HRESULT GetThemeFont(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, int iPropId, winmdroot.Graphics.Gdi.
LOGFONTW
* pFont);
_generated\61\Windows.Win32.EXTLOGFONTW.g.cs (1)
31
internal winmdroot.Graphics.Gdi.
LOGFONTW
elfLogFont;
System\Drawing\FontExtensions.cs (4)
11
public static
LOGFONTW
ToLogicalFont(this Font font)
14
return Unsafe.As<LOGFONT,
LOGFONTW
>(ref logFont);
17
public static
LOGFONTW
ToLogicalFont(this Font font, Graphics graphics)
20
return Unsafe.As<LOGFONT,
LOGFONTW
>(ref logFont);
System\Windows\Forms\Automation\UiaTextProvider.cs (1)
47
public abstract
LOGFONTW
Logfont { get; }
System\Windows\Forms\Automation\UiaTextRange.cs (6)
881
private static string GetFontName(
LOGFONTW
logfont) => logfont.FaceName.ToString();
883
private static double GetFontSize(
LOGFONTW
logfont)
892
private static int GetFontWeight(
LOGFONTW
logfont) => logfont.lfWeight;
903
private static bool GetItalic(
LOGFONTW
logfont) => logfont.lfItalic != 0;
907
private static int GetStrikethroughStyle(
LOGFONTW
logfont)
910
private static int GetUnderlineStyle(
LOGFONTW
logfont)
Windows\Win32\PInvoke.GetThemeFont.cs (2)
10
/// <inheritdoc cref="GetThemeFont(HTHEME, HDC, int, int, int,
LOGFONTW
*)"/>
16
HRESULT result = GetThemeFont(hTheme.Handle, hdc, iPartId, iStateId, iPropId, (
LOGFONTW
*)p);
Windows\Win32\UI\Controls\Dialogs\CHOOSEFONTW.cs (1)
75
public unsafe
LOGFONTW
* lpLogFont;