42 references to FONT_QUALITY
System.Private.Windows.Core (1)
Windows.Win32.LOGFONTW.g.cs (1)
95 internal winmdroot.Graphics.Gdi.FONT_QUALITY lfQuality;
System.Windows.Forms (35)
System\Windows\Forms\Rendering\ControlPaint.cs (3)
2047FONT_QUALITY quality = TextRenderer.FontQualityFromTextRenderingHint(dc); 2060FONT_QUALITY quality = FONT_QUALITY.DEFAULT_QUALITY)
System\Windows\Forms\Rendering\FontCache.cs (6)
22internal sealed partial class FontCache : RefCountedCache<HFONT, FontCache.Data, (Font Font, FONT_QUALITY Quality)> 36public CacheEntry GetEntry(Font font, FONT_QUALITY quality = FONT_QUALITY.DEFAULT_QUALITY) => GetEntry((font, quality)); 38public override CacheEntry GetEntry((Font Font, FONT_QUALITY Quality) key) 46protected override CacheEntry CreateEntry((Font Font, FONT_QUALITY Quality) key, bool cached) 49protected override bool IsMatch((Font Font, FONT_QUALITY Quality) key, CacheEntry entry)
System\Windows\Forms\Rendering\FontCache.Data.cs (4)
20public FONT_QUALITY Quality { get; } 24public Data(Font font, FONT_QUALITY quality) 66private static unsafe HFONT FromFont(Font font, FONT_QUALITY quality = FONT_QUALITY.DEFAULT_QUALITY)
System\Windows\Forms\Rendering\GdiCache.cs (2)
91public static FontCache.Scope GetHFONTScope(Font? font, FONT_QUALITY quality = FONT_QUALITY.DEFAULT_QUALITY)
System\Windows\Forms\Rendering\TextRenderer.cs (20)
21internal static FONT_QUALITY DefaultQuality { get; } = GetDefaultFontQuality(); 305FONT_QUALITY quality = FontQualityFromTextRenderingHint(dc); 334FONT_QUALITY quality = FontQualityFromTextRenderingHint(e.GraphicsInternal); 351FONT_QUALITY fontQuality, 361FONT_QUALITY fontQuality, 521using var hfont = GetFontOrHdcHFONT(font, FONT_QUALITY.DEFAULT_QUALITY, screen); 539FONT_QUALITY quality = FontQualityFromTextRenderingHint(dc); 566internal static FONT_QUALITY FontQualityFromTextRenderingHint(IDeviceContext? deviceContext) 570return FONT_QUALITY.DEFAULT_QUALITY; 575TextRenderingHint.ClearTypeGridFit => FONT_QUALITY.CLEARTYPE_QUALITY, 576TextRenderingHint.AntiAliasGridFit or TextRenderingHint.AntiAlias => FONT_QUALITY.ANTIALIASED_QUALITY, 577TextRenderingHint.SingleBitPerPixelGridFit => FONT_QUALITY.PROOF_QUALITY, 578TextRenderingHint.SingleBitPerPixel => FONT_QUALITY.DRAFT_QUALITY, 579_ => FONT_QUALITY.DEFAULT_QUALITY, 587private static FONT_QUALITY GetDefaultFontQuality() 591return FONT_QUALITY.PROOF_QUALITY; 596? FONT_QUALITY.CLEARTYPE_QUALITY : FONT_QUALITY.ANTIALIASED_QUALITY; 650/// <inheritdoc cref="GdiCache.GetHFONTScope(Font?, FONT_QUALITY)"/> 658private static FontCache.Scope GetFontOrHdcHFONT(Font? font, FONT_QUALITY quality, HDC hdc)
System.Windows.Forms.Tests (6)
System\Windows\Forms\FontCacheTests.cs (1)
32(FONT_QUALITY)random.Next(7));
Text\FontMetrics.cs (5)
27using var hfont = GdiCache.GetHFONTScope(font, FONT_QUALITY.CLEARTYPE_QUALITY); 46using var hfont = GdiCache.GetHFONTScope(font, FONT_QUALITY.CLEARTYPE_QUALITY); 67using var hfont = GdiCache.GetHFONTScope(font, FONT_QUALITY.CLEARTYPE_QUALITY); 85using var hfont = GdiCache.GetHFONTScope(font, FONT_QUALITY.CLEARTYPE_QUALITY); 142using var hfont = GdiCache.GetHFONTScope(font, FONT_QUALITY.CLEARTYPE_QUALITY);