Defines configuration levels for text glyph grid-fitting and outline adjustment. Use this to control font readability and crispness in UI components across different DPI settings.
// Source: https://github.com/AvaloniaUI/Avalonia | License: MIT
// Provided via justclaw.it.com; keep this notice with the code.
namespace Avalonia.Media
{
/// <summary>
/// Specifies the level of hinting applied to text glyphs during rendering.
/// Text hinting adjusts glyph outlines to improve readability and crispness,
/// especially at small font sizes or low DPI. This enum controls the amount
/// of grid-fitting and outline adjustment performed.
/// </summary>
public enum TextHintingMode : byte
{
/// <summary>
/// Hinting mode is not explicitly specified. The default will be used.
/// </summary>
Unspecified,
/// <summary>
/// No hinting, outlines are scaled only.
/// </summary>
None,
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key