Skip to content

Text rendering with Core.Drawing #10

Open

Description

@objorke

The fonts do not look good. Change default font?

image

Activity

  1. VisualMelon commented on Oct 27, 2019

    @VisualMelon

    This appears to be resolved by setting the TextRenderingHint of the Graphics object:

    g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;
    

    The default configurations becomes unhappy when you render onto a transparent or translucence background (it goes away if you add a background color).

    I assume this comes with a cost, but I'd reckon this should be enabled by default in OxyPlot.Core.Drawing. It could be made configurable, but I'm not sure there would be much point adding behaviour just for it. Better would be to allow some mechanism for the user to configure the Graphics object directly (e.g. through a call-back).

  2. added a commit that references this issue on Oct 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions