1 instantiation of FontCache
System.Windows.Forms (1)
System\Windows\Forms\Rendering\GdiCache.cs (1)
16private static readonly FontCache s_fontCache = new();
10 references to FontCache
System.Windows.Forms (10)
System\Windows\Forms\Rendering\FontCache.cs (2)
22internal 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)
16private static readonly FontCache s_fontCache = new(); 91public static FontCache.Scope GetHFONTScope(Font? font, FONT_QUALITY quality = FONT_QUALITY.DEFAULT_QUALITY) 95return font is null ? new FontCache.Scope() : s_fontCache.GetEntry(font, quality).CreateScope();
System\Windows\Forms\Rendering\TextExtensions.cs (3)
52FontCache.Scope font, 104this FontCache.Scope font, 213FontCache.Scope font,
System\Windows\Forms\Rendering\TextRenderer.cs (2)
658private static FontCache.Scope GetFontOrHdcHFONT(Font? font, FONT_QUALITY quality, HDC hdc) 667return new FontCache.Scope(hfont);