draw2d icon indicating copy to clipboard operation
draw2d copied to clipboard

Font Support in draw2dgl

Open redstarcoder opened this issue 9 years ago • 2 comments

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 avatar Oct 15 '16 00:10 redstarcoder

I've forked the repository and committed the changes there for now: https://github.com/redstarcoder/draw2d/commit/e88d8e42c87512929932eb2e43b3f98ef9b9d24c

redstarcoder avatar Oct 15 '16 14:10 redstarcoder

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@e88d8e4 https://github.com/redstarcoder/draw2d/commit/e88d8e42c87512929932eb2e43b3f98ef9b9d24c

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/llgcode/draw2d/issues/109#issuecomment-253988708, or mute the thread https://github.com/notifications/unsubscribe-auth/AAf_MyM8GnHfhFnkeTTaoNQj-jxlaV2kks5q0OgQgaJpZM4KXkJ8 .

llgcode avatar Oct 16 '16 18:10 llgcode