# canvas

Vector graphics in Go

Canonical page: https://www.reposhelf.co.uk/projects/github/tdewolff/canvas.html

- Project ID: tdewolff/canvas
- Source: GitHub
- Original project: https://github.com/tdewolff/canvas
- Description attribution: project author metadata
- Categories: Design
- Technologies: Go
- Licence: MIT
- Repository availability checked: 2026-11-04T21:16:42.989Z
- Demo page loaded: 2026-11-23T18:19:25.073Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> FUNDING REQUIRED please contact me to support this work

> Canvas is a common vector drawing target that can output SVG, PDF, EPS, raster images \(PNG, JPG, GIF, ...\), HTML Canvas through WASM, OpenGL, and Gio. It has a wide range of path manipulation functionality such as flattening, stroking and dashing implemented. Additionally, it has a text formatter and embeds and subsets fonts \(TTF, OTF, WOFF, WOFF2, or EOT\) or converts them to outlines. It can be considered a Cairo or node-canvas alternative in Go. See the example below in Figure 1 for an overview of the functionality.

> Figure 1: top-left you can see text being fitted into a box, justified using Donald Knuth's linea breaking algorithm to stretch the spaces between words to fill the whole width. You can observe a variety of styles and text decorations applied, as well as support for LTR/RTL mixing and complex scripts. In the bottom-right the word "stroke" is being stroked and drawn as a path. Top-right we see a LaTeX formula that has been converted to a path. Left of that we see an ellipse showcasing precise dashing, notably the length of e.g. the short dash is equal wherever it is on the curve. Note that the…

- Path segment types: MoveTo, LineTo, QuadTo, CubeTo, ArcTo, Close \(see Paths\)
- Precise path flattening, stroking, and dashing for all segment types \(see papers below\)
- Smooth spline generation through points for open and closed paths
- LaTeX to path conversion \(native Go and CGO implementations available\)
- sRGB compliance \(use SRGBColorSpace, only available for rasterizer\)

## Author-documented requirements and audience

> FUNDING REQUIRED please contact me to support this work





Not recorded: Account, External API key, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/tdewolff/canvas/blob/master/README.md

Extraction checked: 2026-10-27T08:10:08.373Z

Last recorded source update: 2026-09-23T21:43:31.000Z

Saved release: Not recorded. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=tdewolff%2Fcanvas). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
