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

Font Support in draw2dgl #109

Open
redstarcoder opened this issue Oct 15, 2016 · 2 comments
Open

Font Support in draw2dgl #109

redstarcoder opened this issue Oct 15, 2016 · 2 comments

Comments

@redstarcoder
Copy link
Contributor

I want to begin by saying I don't have a lot of experience in graphics. I've only ever worked with software graphics.

What's needed to get font support in draw2dgl? I tried copying the draw2dimg functions to draw2dgl/gc.go (and copied over text.go) with about 4 extra lines of changes and it seems to work gloriously. Is this the best method of drawing text?

Even if there's a better way to do it, software rendering seems better than a panic anyways. I could submit these changes as a PR if needed.

@redstarcoder
Copy link
Contributor Author

I've forked the repository and committed the changes there for now: redstarcoder@e88d8e4

@llgcode
Copy link
Owner

llgcode commented Oct 16, 2016

Sure there's better way. But I agree it's better than a panic you're right.

-- Laurent.

On 15 October 2016 at 16:49, redstarcoder [email protected] wrote:

I've forked the repository and committed the changes there for now:
redstarcoder/draw2d@e88d8e4
redstarcoder@e88d8e4


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#109 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAf_MyM8GnHfhFnkeTTaoNQj-jxlaV2kks5q0OgQgaJpZM4KXkJ8
.

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

2 participants