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

I've noticed `MeasureString` slightly underestimates the size of a string. Here is the code that I used to test this: ```go dc := gg.NewContext(300, 100) dc.SetColor(color.White) dc.DrawRectangle(0, 0, float64(dc.Width()), float64(dc.Height()))...

The Context struct has a matrix property and various methods to manipulate that matrix. But although you can create a new Matrix, there is no way to apply a matrix...

`DrawStringWrapped` break line by english space currently, is possible break line by the word width?`fontFace` should able to return width of each word.

Hi, I was wondering if anti-aliasing can be turned off by now. like that,thanks. ![image](https://user-images.githubusercontent.com/38355930/177539301-df9ac832-e740-4591-868b-9add4fcba990.png)

My use-case is to create an educational video where I want to explain an algorithm that works on images. I would like to start the video by zooming into an...

Similar to [this issue](https://github.com/fogleman/gg/issues/82), I needed a way to underline text. Since you mentioned looking for a generic way to include this feature in your project, I ended up submitting...

please consider support setting font weight when using a vf.ttf font file

When I modify a snippet `text.go` in examples/ ie ``` golang package main import "github.com/fogleman/gg" func main() { const S = 1024 dc := gg.NewContext(S, S) dc.SetRGB(1, 1, 1) dc.Clear()...

Is there any way to use go concurrency if it is there can anyone please provide and example, or else the image processing take 300ms+ to load i wanna make...

This adds support for fs.FS filesystems (which are used for go:embed directives, etc) as well as go module support.