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

[FEATURE] Add function to SkiaSharp.Harfbuzz for getting shaped text paths #2512

Open
ScrubN opened this issue Jun 28, 2023 · 0 comments · May be fixed by #2513
Open

[FEATURE] Add function to SkiaSharp.Harfbuzz for getting shaped text paths #2512

ScrubN opened this issue Jun 28, 2023 · 0 comments · May be fixed by #2513

Comments

@ScrubN
Copy link

ScrubN commented Jun 28, 2023

Is your feature request related to a problem? Please describe.

Currently, there is no shaped equivalent to SKPaint.GetTextPath(), which can be inconvenient in scenarios that utilize CanvasExtensions.DrawShapedText() and require drawing an outline around the text.

Describe the solution you'd like

An extension method for SKFont that returns the shaped path of a text input. To remain consistent with CanvasExtensions.DrawShapedText(), the primary method signature would ideally be along the lines of:

SKPath GetShapedTextPath(this SKFont paint, SKShaper shaper, string text, float x, float y, SKTextAlign textAlign)

Describe alternatives you've considered

This functionality could just be implemented within my own projects, however I believe it would benefit the community if it were included within SkiaSharp.Harfbuzz.

@ScrubN ScrubN linked a pull request Jun 28, 2023 that will close this issue
5 tasks
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

Successfully merging a pull request may close this issue.

1 participant