Giter Club home page Giter Club logo

draw2d's People

Contributors

andrekr avatar bramp avatar dependabot[bot] avatar dougschmidt-leeward avatar drahoslove avatar elara6331 avatar gerald1248 avatar google-feinberg avatar iopred avatar kortschak avatar llgcode avatar mattmasters avatar mperlick avatar piotrkowalczuk avatar ptxmac avatar sbinet avatar scrouthtv avatar sdkawata avatar stanim avatar stephenwithav avatar testwill avatar zstyblik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

draw2d's Issues

Does not compile with the latest Go (r57.1)

What steps will reproduce the problem?
1. Try to build the library
2. Get the error: interpreter.go:62: too many arguments in call to os.Open

What version of the product are you using? On what operating system?

krasin@krasin7:~/go/go$ hg identify
95d2ce135523 (release-branch.r57) release/release.r57.1


Please provide any additional information below.

Running gofix solves the problem:

krasin@krasin7:~/go/go/src/pkg/draw2d.googlecode.com/hg$ gofix *
AUTHORS:1:1: expected 'package', found 'IDENT' Laurent
cmd/gettingStarted.go:19:30: rewrote os.Open with O_CREATE but not O_TRUNC to 
os.Create
cmd/gettingStarted.go:19:12: rewrote os.Open to os.Create with permission not 
0666
cmd/gettingStarted.go: fixed osopen
cmd/testandroid.go:43:30: rewrote os.Open with O_CREATE but not O_TRUNC to 
os.Create
cmd/testandroid.go:43:12: rewrote os.Open to os.Create with permission not 0666
cmd/testandroid.go: fixed osopen
cmd/testdraw2d.go:45:30: rewrote os.Open with O_CREATE but not O_TRUNC to 
os.Create
cmd/testdraw2d.go:45:12: rewrote os.Open to os.Create with permission not 0666
cmd/testdraw2d.go: fixed osopen
cmd/testgopher.go:43:30: rewrote os.Open with O_CREATE but not O_TRUNC to 
os.Create
cmd/testgopher.go:43:12: rewrote os.Open to os.Create with permission not 0666
cmd/testgopher.go: fixed osopen
cmd/testimage.go:17:30: rewrote os.Open with O_CREATE but not O_TRUNC to 
os.Create
cmd/testimage.go:17:12: rewrote os.Open to os.Create with permission not 0666
cmd/testimage.go: fixed osopen
cmd/testpostscript.go:20:30: rewrote os.Open with O_CREATE but not O_TRUNC to 
os.Create
cmd/testpostscript.go:20:12: rewrote os.Open to os.Create with permission not 
0666
cmd/testpostscript.go: fixed osopen
LICENSE:1:1: expected 'package', found 'IDENT' Copyright
Makefile:2:1: expected 'package', found 'IDENT' include
postscript/interpreter.go: fixed osopen
README:3:1: expected 'package', found 'IDENT' This
krasin@krasin7:~/go/go/src/pkg/draw2d.googlecode.com/hg$ make install
cd draw2d && make install
make[1]: Entering directory 
`/home/krasin/go/go/src/pkg/draw2d.googlecode.com/hg/draw2d'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory 
`/home/krasin/go/go/src/pkg/draw2d.googlecode.com/hg/draw2d'
cd postscript && make install
make[1]: Entering directory 
`/home/krasin/go/go/src/pkg/draw2d.googlecode.com/hg/postscript'
6g  -o _go_.6 operators_array.go operators_dictionary.go operators_misc.go 
procedure.go interpreter.go operators_conflict.go operators_graphics.go 
operators_relational.go scanner.go operators.go operators_control.go 
operators_math.go operators_stack.go 
rm -f _obj/draw2d.googlecode.com/hg/postscript.a
gopack grc _obj/draw2d.googlecode.com/hg/postscript.a _go_.6 
cp _obj/draw2d.googlecode.com/hg/postscript.a 
"/home/krasin/go/go/pkg/linux_amd64/draw2d.googlecode.com/hg/postscript.a"
make[1]: Leaving directory 
`/home/krasin/go/go/src/pkg/draw2d.googlecode.com/hg/postscript'


Original issue reported on code.google.com by [email protected] on 15 May 2011 at 5:05

draw2.v1: draw2d.Circle() draws a horizontal line.

I tried the code below with draw2d.v1 and got a result:
circ

I think this is a bug. Could you check this?

package main

import (
    "gopkg.in/llgcode/draw2d.v1"
    "image"
    "image/color"
)

func main() {
    width := 200
    height := 200
    img := image.NewRGBA(image.Rect(0, 0, width, height))
    gc := draw2d.NewGraphicContext(img)

    gc.SetStrokeColor(color.NRGBA{255, 255, 255, 255})
    gc.SetFillColor(color.NRGBA{255, 255, 255, 255})
    gc.Clear()

    gc.SetStrokeColor(color.NRGBA{255, 0, 0, 255})
    gc.SetLineWidth(1)

    // Draw a circle
    draw2d.Circle(gc, 100, 100, 50)
    gc.Stroke()

    draw2d.SaveToPngFile("circ.png", img)
}

Font path

Specify the font to use specifying a path or a font object

DrawImage with RotationMatrix leave a black hole

Here is my code:
    //load background image
    file, err := os.Open("android.png")
    if err != nil {
        log.Fatal(err)
    }
    defer file.Close()  
    a, _, err := image.Decode(file)

    //load go icon image
    file2, err := os.Open("go.png")
    if err != nil {
        log.Fatal(err)
    }
    defer file2.Close()
    g, _, err := image.Decode(file2)

    if err != nil {
        log.Fatal(err)
    }

    ar := a.Bounds()
    w, h, x := ar.Dx(), ar.Dy(), 30.0
    i := image.NewRGBA(image.Rect(0, 0, w, h))
    draw.Draw(i, ar, a, ar.Min, draw.Src)

    tr := draw2d.NewRotationMatrix(x*(math.Pi / 180.0))
    draw2d.DrawImage(g, i, tr, draw.Src, draw2d.LinearFilter)
    saveToPngFile("Test2", i)

I'm trying to rotate + paste an small image to the background image.
But you can see like the attachment image, why it leave the ugly black hole??
This is a bug or my misstake?
Thanks for your help!

Original issue reported on code.google.com by [email protected] on 23 Apr 2012 at 3:40

Attachments:

go vet issues

Draw2d contains some issues reported by go vet, which likely should be fixed:

arc.go:38: unreachable code
arc.go:67: unreachable code
arc.go:59: code.google.com/p/freetype-go/freetype/raster.Point composite literal uses unkeyed fields
arc.go:65: code.google.com/p/freetype-go/freetype/raster.Point composite literal uses unkeyed fields
arc.go:67: code.google.com/p/freetype-go/freetype/raster.Point composite literal uses unkeyed fields
path_adder.go:26: code.google.com/p/freetype-go/freetype/raster.Point composite literal uses unkeyed fields
path_adder.go:28: code.google.com/p/freetype-go/freetype/raster.Point composite literal uses unkeyed fields
path_adder.go:40: code.google.com/p/freetype-go/freetype/raster.Point composite literal uses unkeyed fields
path_adder.go:49: code.google.com/p/freetype-go/freetype/raster.Point composite literal uses unkeyed fields
path_adder.go:53: code.google.com/p/freetype-go/freetype/raster.Point composite literal uses unkeyed fields
path_adder.go:56: code.google.com/p/freetype-go/freetype/raster.Point composite literal uses unkeyed fields
path_adder.go:56: code.google.com/p/freetype-go/freetype/raster.Point composite literal uses unkeyed fields
path_adder.go:59: code.google.com/p/freetype-go/freetype/raster.Point composite literal uses unkeyed fields
path_adder.go:59: code.google.com/p/freetype-go/freetype/raster.Point composite literal uses unkeyed fields
path_adder.go:59: code.google.com/p/freetype-go/freetype/raster.Point composite literal uses unkeyed fields
exit status 1

Fix to build with go weekly/tip

What steps will reproduce the problem?
1. cd go/src/pkg/draw2d.googlecode.com/hg/draw2d
2. hg pull && hg update
3. goinstall .

What is the expected output? What do you see instead?
Expected: no output 
Instead: image.go:80: not enough arguments in call to draw.Draw

What version of the product are you using? On what operating system?
Using go tip and draw2d tip

Please provide any additional information below.

Fix:

diff -r dfc88bbb5ba2 draw2d/image.go
--- a/draw2d/image.go   Wed Jun 08 00:31:06 2011 +0200
+++ b/draw2d/image.go   Sun Jul 03 02:14:46 2011 +0200
@@ -77,7 +77,7 @@

 func (gc *ImageGraphicContext) ClearRect(x1, y1, x2, y2 int) {
        imageColor := image.NewColorImage(gc.Current.FillColor)
-       draw.Draw(gc.img, image.Rect(x1, y1, x2, y2), imageColor, image.ZP)
+       draw.Draw(gc.img, image.Rect(x1, y1, x2, y2), imageColor, image.ZP, 
draw.Over)
 }

 func (gc *ImageGraphicContext) DrawImage(img image.Image) {

Original issue reported on code.google.com by [email protected] on 3 Jul 2011 at 12:27

package curve doesn't build

What steps will reproduce the problem?
1. go get code.google.com/p/draw2d
2. go build  go build code.google.com/p/draw2d/draw2d/curve


What is the expected output? What do you see instead?
should cleanly exit.

instead:

can't load package: package code.google.com/p/draw2d/draw2d/curve: found 
packages arc.go (draw2d) and cubic_float64.go (curve) in 
/home/cryptix/go/src/code.google.com/p/draw2d/draw2d/curve


Draw2d Package version , Go version ?
latest master, go 1.4

Please provide any additional information below.

I changed the package to curve and changed the return in the for-loop to a 
break. Please see the attached patch-file.


My main incentive for this fix is that godoc -analysis fails if it can't load 
all packages in $GOPATH.

Original issue reported on code.google.com by [email protected] on 7 Jan 2015 at 12:02

Attachments:

nrgba.RGBA undefined

What steps will reproduce the problem?

make install 

What is the expected output? What do you see instead?

paint.go:49: nrgba.RGBA undefined (type uint8 has no field or method RGBA)
paint.go:59: cannot use struct literal (type image.NRGBAColor) as type uint8 in 
assignment
paint.go:63: nrgba.RGBA undefined (type uint8 has no field or method RGBA)
paint.go:73: cannot use struct literal (type image.NRGBAColor) as type uint8 in 
assignment
make[1]: *** [_go_.6] Error 1
make[1]: Leaving directory `/home/zzzzrrr/workspace/draw2d/draw2d'
make: *** [install] Error 2

What version of the product are you using? On what operating system?

Ubuntu x64
6g version weekly.2011-07-29 9332

Original issue reported on code.google.com by [email protected] on 4 Aug 2011 at 10:15

golint issues

To improve documentation all golint issues should be fixed.

Image Affine transformation not consistent

Raster Image Affine transformation seems to be not consistent with other transformation done with vectorial operations. For example Scale seem to be done from the center of the image not on the top left.

Cannot change font resource folder

What steps will reproduce the problem?
1.Copy the Fill String demo code
2. Use "go run" to run the code

What is the expected output? What do you see instead?
The code try to get the font data from a specific folder, of cource the folder 
does not exit:
2012/04/19 22:41:21 open ../resource/font/luximbi.ttf: no such file or directory
2012/04/19 22:41:21 open ../resource/font/luxisr.ttf: no such file or directory
width: 0.000000
2012/04/19 22:41:21 open ../resource/font/luximbi.ttf: no such file or directory
2012/04/19 22:41:21 open ../resource/font/luxisr.ttf: no such file or directory
Wrote TestFillString.png OK.
____________________________
How can I edit the location of the font?
I have attach my source file if you need more infomation.


Original issue reported on code.google.com by [email protected] on 19 Apr 2012 at 3:46

Attachments:

Independent API for adding and using fonts

In pdf you add fonts and register them with a name (string). Then you switch fonts by their name. truetype.Font can not be used by the pdf backend, so it is better not a dependency for pdf.  Maybe you can implement an AddFont method which registers truetype.Font.

[PATCH]

Patch to build against weekly.2011.12.22

Gofix (image.Color/color.Color, math, namespace/imports)
Update instances of int in postscript to rune type


Original issue reported on code.google.com by [email protected] on 23 Dec 2011 at 9:57

Attachments:

Caps and Join style don't work for image backend

It appears that MiterJoin doesn't do anything at all. From reading the source 
code, if the Join style is not RoundJoin or BevelJoin, then the Joiner returned 
is the RoundJoiner. Although in my case, RoundJoin doesn't seem to work either 
(I always get a bevel).

Original issue reported on code.google.com by [email protected] on 27 Oct 2013 at 10:22

Problems with anti-aliasing

What steps will reproduce the problem?
1. Run the following code:

a := uint8(150)
palette := [...]image.Color {
    image.RGBAColor{95, 119, 0, a},
    image.RGBAColor{157, 196, 0, a},
    image.RGBAColor{120, 64, 0, a},
    image.RGBAColor{196, 105, 0, a},
    image.RGBAColor{135, 135, 0, a},
};

img := image.NewRGBA(500, 200)
gc := draw2d.NewGraphicContext(img)

for row := 0; row < 2; row++ {
    sa := uint8(255)
    if row == 1 {
        sa = 0
    }
    gc.SetStrokeColor(image.RGBAColor{0, 0, 0, sa})
    for i := 0; i < 5; i++ {
        gc.SetFillColor(palette[i])
        draw2d.Circle(gc, float64(45 * i + 50), float64(50 + 100 * row), 40)
        gc.FillStroke()
    }
}

png.Encode(w, img)

2. View the resulting PNG file

What is the expected output?

Two rows of intersecting circles, top row with borders, bottom row without 
borders, nicely anti-aliased at the edges.

What do you see instead?

AA is broken between certain colors.

What version of the product are you using? On what operating system?

Rev db69b22ef193, with freetype-go at rev fc42a8016807. Go release 60.2 (as 
part of app-engine SDK 1.5.5)

Attaching the resulting PNG file.

Original issue reported on code.google.com by [email protected] on 21 Oct 2011 at 5:27

Attachments:

goinstall doesn't work

philip@philip-VirtualBox:~$ sudo goinstall -v draw2d.googlecode.com/hg/draw2d
goinstall: image/draw: skipping standard library
goinstall: code.google.com/p/freetype-go/freetype/truetype: download
goinstall: code.google.com/p/freetype-go/freetype/truetype: cannot download: 
code.google.com/p/freetype-go/freetype/truetype ($GOPATH not set)
goinstall: image: skipping standard library
goinstall: code.google.com/p/freetype-go/freetype: download
goinstall: code.google.com/p/freetype-go/freetype: cannot download: 
code.google.com/p/freetype-go/freetype ($GOPATH not set)
goinstall: code.google.com/p/freetype-go/freetype/raster: download
goinstall: code.google.com/p/freetype-go/freetype/raster: cannot download: 
code.google.com/p/freetype-go/freetype/raster ($GOPATH not set)
goinstall: image/color: go/build: package could not be found locally ($GOPATH 
not set)
goinstall: log: skipping standard library
goinstall: math: skipping standard library
goinstall: path: skipping standard library
goinstall: fmt: skipping standard library
goinstall: io/ioutil: skipping standard library
philip@philip-VirtualBox:~$ 

Original issue reported on code.google.com by [email protected] on 4 Mar 2012 at 11:02

error:function argument

image.go:166: cannot use nil as type truetype.Hinting in function argument
image.go:225: cannot use nil as type truetype.Hinting in function argument

Original issue reported on code.google.com by [email protected] on 12 Feb 2014 at 4:20

GOPATH Needs to be set

What steps will reproduce the problem?
1. Fresh Go installation
2. goinstall draw2d.googlecode.com/hg/draw2d 

What is the expected output? What do you see instead?

The package should get installed.

goinstall: image/color: go/build: package could not be found locally ($GOPATH 
not set)

What version of the product are you using? On what operating system?

Go release.r60.1, Mac OS X Lion

Please provide any additional information below.

I tried to figure out where to set GOPATH to, which made the ($GOPATH not set) 
part disappear, but I haven't been able to figure out how to fix it.

Original issue reported on code.google.com by [email protected] on 9 Oct 2011 at 5:27

single pixel line images

i am creating a transparent image with a grid pattern of lines.
The image size in 400x400 and I draw black lines every 10 pixels.

Close inspection of the resulting image shows that each line is taking 2 gray pixels with the execption of the "border" horizontal and vertical lines.

I suspect the rasterizer is responsible for this. Is it possible to tell the GC to draw sharp, single pixel, lines?

thanks

Compile error on go 1.2

What steps will reproduce the problem?
1. go get -v code.google.com/p/draw2d/draw2d

What is the expected output? What do you see instead?
# code.google.com/p/draw2d/draw2d
draw2d/draw2d/image.go:166: cannot use nil as type truetype.Hinting in function 
argument
draw2d/draw2d/image.go:225: cannot use nil as type truetype.Hinting in function 
argument


Draw2d Package version: latest, Go version 1.2


Please provide any additional information below.

I fixed this as follows:
cmccabe@keter:~/gopath/src/code.google.com/p/draw2d> hg diff
diff -r ec77dc18b964 draw2d/image.go
--- a/draw2d/image.go   Tue May 28 22:48:35 2013 -0400
+++ b/draw2d/image.go   Wed Feb 12 19:50:47 2014 -0800
@@ -163,7 +163,7 @@
 }

 func (gc *ImageGraphicContext) drawGlyph(glyph truetype.Index, dx, dy float64) error {
-       if err := gc.glyphBuf.Load(gc.Current.font, gc.Current.scale, glyph, 
nil); err != nil {
+       if err := gc.glyphBuf.Load(gc.Current.font, gc.Current.scale, glyph, 
truetype.NoHinting); err != nil {
                return err
        }
        e0 := 0
@@ -222,7 +222,7 @@
                if hasPrev {
                        cursor += fUnitsToFloat64(font.Kerning(gc.Current.scale, prev, index))
                }
-               if err := gc.glyphBuf.Load(gc.Current.font, gc.Current.scale, 
index, nil); err != nil {
+               if err := gc.glyphBuf.Load(gc.Current.font, gc.Current.scale, 
index, truetype.NoHinting); err != nil {
                        log.Println(err)
                        return 0, 0, 0, 0
                }

Original issue reported on code.google.com by [email protected] on 13 Feb 2014 at 3:51

freetype.go:180: not enough arguments in call to image.NewAlpha

What steps will reproduce the problem?

goinstall draw2d.googlecode.com/hg/draw2d


What is the expected output? What do you see instead?

/bin/bash: === cd 
/Users/abaumann/goinstall_base/src/freetype-go.googlecode.com/hg/freetype; bash 
gomake -f- install
6g -I "/Users/abaumann/go/pkg/darwin_amd64" -I 
"/Users/abaumann/goinstall_base/pkg/darwin_amd64"  -o _go_.6 freetype.go 
freetype.go:180: cannot use image.Rect(0, 0, xmax - xmin, ymax - ymin) (type 
image.Rectangle) as type int in function argument
freetype.go:180: not enough arguments in call to image.NewAlpha
make: *** [_go_.6] Error 1
--- exit status 2
goinstall: freetype-go.googlecode.com/hg/freetype: install: running bash: exit 
status 2


What version of the product are you using? On what operating system?

OSX Lion

Please provide any additional information below.

I use the current release of go (16.09.2011 weekly)


Original issue reported on code.google.com by [email protected] on 16 Sep 2011 at 7:23

Code review request

Purpose of code changes on this branch:

Changes for Rectangle structure definition

When reviewing my code changes, please focus on:

I modified image package. It is a big change.
I raise review request for that. This changes are sync to the new image package

After the review, I'll merge this branch into:
/trunk


Original issue reported on code.google.com by [email protected] on 27 Sep 2011 at 11:25

Attachments:

PDF GraphicContext

PDF GraphicContext using this project https://bitbucket.org/zombiezen/gopdf/

Original issue reported on code.google.com by [email protected] on 16 Apr 2012 at 7:44

not enough arguments

$ goinstall draw2d.goog
$ sudo goinstall draw2d.googlecode.com/hg/draw2d 
/bin/bash: === cd /usr/lib/go/src/pkg/draw2d.googlecode.com/hg/draw2d; bash 
gomake -f- install
6g -I "/usr/lib/go/pkg/linux_amd64"  -o _go_.6 dasher.go advanced_path.go 
transform.go stroker.go paint.go path_converter.go math.go curves.go 
stack_gc.go rgba_interpolation.go path_storage.go demux_converter.go gc.go 
path_adder.go path.go image.go font.go arc.go vertex2d.go 
image.go:80: not enough arguments in call to draw.Draw
make: *** [_go_.6] Error 1
--- exit status 2



Original issue reported on code.google.com by mictadlo on 30 Aug 2011 at 12:25

Font functions assume file system access to read font files - not available in AppEngine or Heroku

What steps will reproduce the problem?
In environments like AppEngine or Heroku, we can't rely on file system access 
being available to the web app always. Trying to use fonts gives go runtime 
error of unable to access file resource

What is the expected output? What do you see instead?
If we can have generic versions of the Font functions that can be passed  font 
file data as a byte slice OR a Reader, we can use the font functions in 
environments where file access is not available.

Original issue reported on code.google.com by [email protected] on 17 Nov 2013 at 4:21

godoc interprets copyright as a package document

There should be a space between the copyright notice comments and the package 
declaration statements.  If you look at the godoc output for this package 
(http://gopkgdoc.appspot.com/pkg/code.google.com/p/draw2d/draw2d) you will 
notice that godoc thinks the copyright notices are part of the package 
description.

Original issue reported on code.google.com by [email protected] on 16 Apr 2012 at 5:53

Text doesn't rotate.

What steps will reproduce the problem?

Set up a rotation
Draw text

What is the expected output? What do you see instead?

The text should be rotated.  Instead, the text is drawn smaller
without rotation.

Original issue reported on code.google.com by [email protected] on 19 Apr 2012 at 6:58

Documentation under the wrong copyright terms

What steps will reproduce the problem?
-- not applicable --

Please provide any additional information below.

This document shouldn't be in the repository.

http://code.google.com/p/draw2d/source/browse/doc/PLRM.pdf

Please check out the copyrights page included in it.

Original issue reported on code.google.com by [email protected] on 24 Oct 2011 at 3:02

Support addition of custom painters

I would like to have a function to create a GraphicContext using an exotic 
image type I implemented. It could be basically a modified version of 
NewGraphicContext taking a painter as parameter like the one at the end of this 
message.

Regards,
Michael

////////////////////////
func NewGraphicContext2(img draw.Image, painter Painter) *ImageGraphicContext {
    width, height := img.Bounds().Dx(), img.Bounds().Dy()
    dpi := 92
    ftContext := freetype.NewContext()
    ftContext.SetDPI(dpi)
    ftContext.SetClip(img.Bounds())
    ftContext.SetDst(img)
    gc := &ImageGraphicContext{
        NewStackGraphicContext(),
        img,
        painter,
        raster.NewRasterizer(width, height),
        raster.NewRasterizer(width, height),
        ftContext,
        dpi,
    }
    return gc
}

Original issue reported on code.google.com by [email protected] on 11 May 2012 at 10:18

cannot use nil as type truetype.Hinting in function argument

What steps will reproduce the problem?

$ go get -u code.google.com/p/draw2d/draw2d/
# code.google.com/p/draw2d/draw2d
/home/mischief/code/go/src/code.google.com/p/draw2d/draw2d/image.go:166: cannot 
use nil as type truetype.Hinting in function argument
/home/mischief/code/go/src/code.google.com/p/draw2d/draw2d/image.go:225: cannot 
use nil as type truetype.Hinting in function argument

What is the expected output? What do you see instead?
no output - successful compilation.

Draw2d Package version , Go version ?
draw2d ec77dc18b964
go version devel +ae14bde9ce3c Wed Feb 05 07:32:16 2014 -0800 linux/amd64



you just need to replace 'nil' on these lines with either 0, or the correct 
constant from the truetype package.

Original issue reported on code.google.com by [email protected] on 12 Feb 2014 at 4:11

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.