2 writes to s_defaultFont
System.Windows.Forms (2)
System\Windows\Forms\Application.cs (2)
1371
s_defaultFont
= font;
1401
s_defaultFont
= newSystemFont;
8 references to s_defaultFont
System.Windows.Forms (8)
System\Windows\Forms\Application.cs (8)
30
/// Scaled version of non system <see cref="
s_defaultFont
"/>.
347
internal static Font DefaultFont => s_defaultFontScaled ??
s_defaultFont
!;
1376
/// Scale <see cref="
s_defaultFont
"/> or <see cref="s_defaultFontScaled"/> if needed.
1380
if (
s_defaultFont
is null)
1385
if (
s_defaultFont
.IsSystemFont)
1393
Font newSystemFont = SystemFonts.GetFontByName(
s_defaultFont
.SystemFontName)!;
1394
if (
s_defaultFont
.Equals(newSystemFont))
1406
Font? font = ScaleHelper.ScaleToSystemTextSize(
s_defaultFont
);