Skip to content

Setting custom DPI resolution, font scaling behavior #189

Answered by replaysMike
replaysMike asked this question in Ideas
Discussion options

You must be logged in to vote

I think I found what I'm looking for here, hopefully this helps someone else out:

var drawingOptions = new DrawingOptions
{
    TextOptions = new TextOptions
    {
        ApplyKerning = true,
        DpiX = 600,
        DpiY = 600
    },
};
image.Mutate(c => c.DrawText(drawingOptions, "My Text", font, Color.Black, new PointF(x, y)));

As a "it would be nice" if by default, the TextOptions for DrawText were to inherit the Dpi setting from the image metadata it's drawing on. But that's just my 2 cents :)

Replies: 0 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by replaysMike
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
1 participant