gg icon indicating copy to clipboard operation
gg copied to clipboard

Go Graphics - 2D rendering in Go with a simple API.

Results 98 gg issues
Sort by recently updated
recently updated
newest added

Any way to measure a wrapped string before drawing? I'd like to reduce font size until it's smaller than Y.

Hello Michael, I'm trying to draw colored polygons but I would need their lines not to have any gradient and only use the color I'm filling them with. Any idea...

Give an example of how to display it on the screen. What is the point of output in png?

I want to set the outline style for text, but it looks like I cannot set the path by text. If I can do that, I think the stroke and...

I specifically found that this occurs when running `ctx.DrawCircle(x,y, 3)` if x and y are NaN. I assume this should cause and error or panic, as it took a while...

``` + cd gg-72436a171bf31757dc87fb8fa9f7485307350307 + LDFLAGS='-X github.com/fogleman/gg/version=1.3.0 -X github.com/fogleman/gg/version.commit=72436a171bf31757dc87fb8fa9f7485307350307' + GO_TEST_FLAGS='-buildmode pie -compiler gc' + GO_TEST_EXT_LD_FLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' + go-rpm-integration check -i github.com/fogleman/gg -b /builddir/build/BUILD/gg-72436a171bf31757dc87fb8fa9f7485307350307/_build/bin -s /builddir/build/BUILD/gg-72436a171bf31757dc87fb8fa9f7485307350307/_build -V...

I would like to write underline text but I'm not sure if that is something I need to define with an external package like https://github.com/golang/freetype or something I have to...

Golang 1.12.6 on aarch64, ppc64le, s390x: ``` Testing in: /builddir/build/BUILD/gg-72436a171bf31757dc87fb8fa9f7485307350307/_build/src PATH: /builddir/build/BUILD/gg-72436a171bf31757dc87fb8fa9f7485307350307/_build/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin GOPATH: /builddir/build/BUILD/gg-72436a171bf31757dc87fb8fa9f7485307350307/_build:/usr/share/gocode GO111MODULE: off command: go test -buildmode pie -compiler gc -ldflags "-X github.com/fogleman/gg/version.commit=72436a171bf31757dc87fb8fa9f7485307350307 -X github.com/fogleman/gg/version=1.3.0 -extldflags '-Wl,-z,relro...

I updated my fogleman/gg version, but there was a error, which is type *gg.Context has no field or method SetFontSize