Skip to content

Improve text appearance using ClearType #1496

@swharden

Description

@swharden

@Elgot pointed-out in #823 that font quality could be further improved

AntiAliasGridFit ❌ ClearTypeGridFit ✔️
image image

According to the official docs:

  • AntiAliasGridFit - Each character is drawn using its antialiased glyph bitmap with hinting. Much better quality due to antialiasing, but at a higher performance cost.
  • ClearTypeGridFit - Each character is drawn using its glyph ClearType bitmap with hinting. The highest quality setting. Used to take advantage of ClearType font features.

This change only needs to be made here to take effect throughout this library:

gfx.TextRenderingHint = lowQuality ? TextRenderingHint.SingleBitPerPixelGridFit : TextRenderingHint.AntiAliasGridFit;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions