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)
2047
FONT_QUALITY
quality = TextRenderer.FontQualityFromTextRenderingHint(dc);
2060
FONT_QUALITY
quality =
FONT_QUALITY
.DEFAULT_QUALITY)
System\Windows\Forms\Rendering\FontCache.cs (6)
22
internal sealed partial class FontCache : RefCountedCache<HFONT, FontCache.Data, (Font Font,
FONT_QUALITY
Quality)>
36
public CacheEntry GetEntry(Font font,
FONT_QUALITY
quality =
FONT_QUALITY
.DEFAULT_QUALITY) => GetEntry((font, quality));
38
public override CacheEntry GetEntry((Font Font,
FONT_QUALITY
Quality) key)
46
protected override CacheEntry CreateEntry((Font Font,
FONT_QUALITY
Quality) key, bool cached)
49
protected override bool IsMatch((Font Font,
FONT_QUALITY
Quality) key, CacheEntry entry)
System\Windows\Forms\Rendering\FontCache.Data.cs (4)
20
public
FONT_QUALITY
Quality { get; }
24
public Data(Font font,
FONT_QUALITY
quality)
66
private static unsafe HFONT FromFont(Font font,
FONT_QUALITY
quality =
FONT_QUALITY
.DEFAULT_QUALITY)
System\Windows\Forms\Rendering\GdiCache.cs (2)
91
public static FontCache.Scope GetHFONTScope(Font? font,
FONT_QUALITY
quality =
FONT_QUALITY
.DEFAULT_QUALITY)
System\Windows\Forms\Rendering\TextRenderer.cs (20)
21
internal static
FONT_QUALITY
DefaultQuality { get; } = GetDefaultFontQuality();
305
FONT_QUALITY
quality = FontQualityFromTextRenderingHint(dc);
334
FONT_QUALITY
quality = FontQualityFromTextRenderingHint(e.GraphicsInternal);
351
FONT_QUALITY
fontQuality,
361
FONT_QUALITY
fontQuality,
521
using var hfont = GetFontOrHdcHFONT(font,
FONT_QUALITY
.DEFAULT_QUALITY, screen);
539
FONT_QUALITY
quality = FontQualityFromTextRenderingHint(dc);
566
internal static
FONT_QUALITY
FontQualityFromTextRenderingHint(IDeviceContext? deviceContext)
570
return
FONT_QUALITY
.DEFAULT_QUALITY;
575
TextRenderingHint.ClearTypeGridFit =>
FONT_QUALITY
.CLEARTYPE_QUALITY,
576
TextRenderingHint.AntiAliasGridFit or TextRenderingHint.AntiAlias =>
FONT_QUALITY
.ANTIALIASED_QUALITY,
577
TextRenderingHint.SingleBitPerPixelGridFit =>
FONT_QUALITY
.PROOF_QUALITY,
578
TextRenderingHint.SingleBitPerPixel =>
FONT_QUALITY
.DRAFT_QUALITY,
579
_ =>
FONT_QUALITY
.DEFAULT_QUALITY,
587
private static
FONT_QUALITY
GetDefaultFontQuality()
591
return
FONT_QUALITY
.PROOF_QUALITY;
596
?
FONT_QUALITY
.CLEARTYPE_QUALITY :
FONT_QUALITY
.ANTIALIASED_QUALITY;
650
/// <inheritdoc cref="GdiCache.GetHFONTScope(Font?,
FONT_QUALITY
)"/>
658
private 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)
27
using var hfont = GdiCache.GetHFONTScope(font,
FONT_QUALITY
.CLEARTYPE_QUALITY);
46
using var hfont = GdiCache.GetHFONTScope(font,
FONT_QUALITY
.CLEARTYPE_QUALITY);
67
using var hfont = GdiCache.GetHFONTScope(font,
FONT_QUALITY
.CLEARTYPE_QUALITY);
85
using var hfont = GdiCache.GetHFONTScope(font,
FONT_QUALITY
.CLEARTYPE_QUALITY);
142
using var hfont = GdiCache.GetHFONTScope(font,
FONT_QUALITY
.CLEARTYPE_QUALITY);