1 instantiation of FontCache
System.Windows.Forms (1)
System\Windows\Forms\Rendering\GdiCache.cs (1)
16
private static readonly FontCache s_fontCache =
new
();
10 references to FontCache
System.Windows.Forms (10)
System\Windows\Forms\Rendering\FontCache.cs (2)
22
internal sealed partial class FontCache : RefCountedCache<HFONT,
FontCache
.Data, (Font Font, FONT_QUALITY Quality)>
27
/// Create a <see cref="
FontCache
"/> with the specified collection limits.
System\Windows\Forms\Rendering\GdiCache.cs (3)
16
private static readonly
FontCache
s_fontCache = new();
91
public static
FontCache
.Scope GetHFONTScope(Font? font, FONT_QUALITY quality = FONT_QUALITY.DEFAULT_QUALITY)
95
return font is null ? new
FontCache
.Scope() : s_fontCache.GetEntry(font, quality).CreateScope();
System\Windows\Forms\Rendering\TextExtensions.cs (3)
52
FontCache
.Scope font,
104
this
FontCache
.Scope font,
213
FontCache
.Scope font,
System\Windows\Forms\Rendering\TextRenderer.cs (2)
658
private static
FontCache
.Scope GetFontOrHdcHFONT(Font? font, FONT_QUALITY quality, HDC hdc)
667
return new
FontCache
.Scope(hfont);