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

Add text string in TextRun #7

Open
benoitkugler opened this issue Feb 13, 2025 · 0 comments
Open

Add text string in TextRun #7

benoitkugler opened this issue Feb 13, 2025 · 0 comments

Comments

@benoitkugler
Copy link
Owner

The first big problem I have is with text rendering. In your backend, the render is done glyph by glyph, but both libs takes string to draw text. To try to resolve this string problem, I have added a complementary interface in backend. If rasterizer implements it, it is called instead of actual implementation. So text is drawn as string instead of glyphes. It is less powerfull, but the text is drawn.

I would rather deduce the text string from the current TextRun output. It is almost doable using https://pkg.go.dev/github.com/benoitkugler/[email protected]/backend#FontChars and its Cmap field, but not very easy.
I'll try to simplify this task.

Originally posted by @benoitkugler in #6

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

1 participant