• Stars
    star
    143
  • Rank 257,007 (Top 6 %)
  • Language
    Go
  • License
    Other
  • Created over 12 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Go binding for the cairo graphics library

go-cairo

Go binding for the cairo graphics library

Based on Dethe Elza's version https://bitbucket.org/dethe/gocairo but significantly extended and updated.

Go specific extensions:

  • NewSurfaceFromImage(image.Image)
  • Surface.GetData() []byte
  • Surface.SetData([]byte)
  • Surface.GetImage() image.Image
  • Surface.SetImage(image.Image)

go-cairo also sports a sub package extimage with image.Image/draw.Image implementations for 32 bit ARGB and 24 bit RGB color models.

Overview:

Missing features

  • TextCluster
  • FontExtents
  • FontFace
  • FontOptions
  • ScaledFont
  • Glyph

Installation:

Install cairo:

For Debian and Debian derivatives including Ubuntu:

sudo apt-get install libcairo2-dev

For Fedora:

sudo yum install cairo-devel

For openSUSE:

zypper install cairo-devel

For Arch Linux: (also gcc and pkgconf are required)

sudo pacman -S cairo

For MacOS you may get errors finding cairo-pdf.h. To fix this run:

xcode-select --install

Install go-cairo and run go-cairo-example:

go get github.com/ungerik/go-cairo
go install github.com/ungerik/go-cairo/go-cairo-example && go-cairo-example

Copyrights: See LICENSE file

Bitdeli Badge

More Repositories

1

go-dry

DRY (don't repeat yourself) package for Go
Go
488
star
2

go3d

A performance oriented 2D/3D math package for Go
Go
310
star
3

go-start

A high level web-framework for Go
Go
266
star
4

go-rest

A small and evil REST framework for Go
Go
128
star
5

pkgreflect

A Go preprocessor for package scoped reflection
Go
105
star
6

go-rss

Simple RSS parser for Go
Go
73
star
7

go-mail

Email utilities for Go
Go
31
star
8

go-gravatar

Go wrapper for the Gravatar API
Go
24
star
9

http

A HTTP command line interface for humans
Go
17
star
10

go-mavlink

MAVLink protocol implementation for Go
Go
17
star
11

mdgo

Markdown Go: Literate Programming for Go
Go
16
star
12

go-sysfs

Go package for Linux sysfs
Go
10
star
13

go-json-tree

JSON tree representation for Go
Go
6
star
14

ephesoft

Ephesoft Community, Linux Edition Version 4.0
HTML
6
star
15

go-fs

Unified file system for Go
Go
6
star
16

react-dmodel

Exploit JSX syntax to define data models and auto generate form UI for it
JavaScript
6
star
17

go-pool

Go sync.Pool applications
Go
5
star
18

BaseLib

C++ BaseLib
C++
5
star
19

go-email

Sending Emails with Go
Go
5
star
20

react-inputs

Input components for react
JavaScript
4
star
21

go-bbio

Go package for Beagle Bone IO (port of Adafruit_BBIO)
Go
4
star
22

gosync

Go
1
star
23

ungerik.github.io

HTML
1
star
24

go-reflection

Utilities extending the Go reflect package
Go
1
star
25

go-structflag

Use the Go flag package on config structs
Go
1
star
26

go-amiando

Go library for the Amiando event API
Go
1
star
27

html5-info

Collection of HTML5 related development information
1
star
28

go-command

Wrap Go functions as commands callable from CLI and REST endpoints
Go
1
star
29

gitstat

Global git status command
Go
1
star
30

chrome-netconn

ES6 classes for Chrome socket, serial, and bluetooth APIs
JavaScript
1
star
31

gen-version-info

Creates a Go source file with a constant containing the source version taken from Git or SVN
Go
1
star
32

go-string

Defines the type String with methods from the strings package
Go
1
star