Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RichString.Paint is not rendering ClearType when IsAntialias and LcsRenderText are both set to true #33

Open
PascalHigelin opened this issue Apr 15, 2021 · 2 comments

Comments

@PascalHigelin
Copy link

PascalHigelin commented Apr 15, 2021

Test code:

RichString richString = new RichString
{
    MaxWidth = ScreenClientBounds.Width,
    MaxHeight = ScreenClientBounds.Height
};

richString.FontFamily(Font.FontFamily.Name);
richString.FontSize(Font.Size * 1.25f * ZoomFactor);
richString.FontItalic(Font.Italic);
richString.Bold(Font.Bold);
richString.Add(text);

richString.Paint(canvas, clientRectangle.Location, new TextPaintOptions { IsAntialias = true, LcdRenderText = true });
@toptensoftware
Copy link
Owner

Thanks for reporting. I've looked into this and the flag is getting passed through to the underlying Canvas.DrawText but doesn't seem to be taking effect.

I suspect this is either a bug in SkiaSharp, or it's not supported on Canvas.DrawText when passed a SKTextBlob.

@Gillibald
Copy link

This is somehow related: mono/SkiaSharp#1253

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants