diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-02-23 14:07:01 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-02-23 14:07:01 -0500 |
commit | 962b18411893e1fffd10c2b6370ac34aba62f146 (patch) | |
tree | 0dfdd3735c18e2c242957cc79d6ca48bce8de1f5 /Godeps/_workspace/src/golang.org/x/image/font | |
parent | 11093ddb51a70622287aac20108be6c6aa2eb76d (diff) | |
download | chat-962b18411893e1fffd10c2b6370ac34aba62f146.tar.gz chat-962b18411893e1fffd10c2b6370ac34aba62f146.tar.bz2 chat-962b18411893e1fffd10c2b6370ac34aba62f146.zip |
Updating golang dependancies (godep)
Diffstat (limited to 'Godeps/_workspace/src/golang.org/x/image/font')
28 files changed, 0 insertions, 170 deletions
diff --git a/Godeps/_workspace/src/golang.org/x/image/font/plan9font/example_test.go b/Godeps/_workspace/src/golang.org/x/image/font/plan9font/example_test.go deleted file mode 100644 index c1eacb230..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/plan9font/example_test.go +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package plan9font_test - -import ( - "image" - "image/draw" - "io/ioutil" - "log" - "os" - "path" - "path/filepath" - - "golang.org/x/image/font" - "golang.org/x/image/font/plan9font" - "golang.org/x/image/math/fixed" -) - -func ExampleParseFont() { - readFile := func(name string) ([]byte, error) { - return ioutil.ReadFile(filepath.FromSlash(path.Join("../testdata/fixed", name))) - } - fontData, err := readFile("unicode.7x13.font") - if err != nil { - log.Fatal(err) - } - face, err := plan9font.ParseFont(fontData, readFile) - if err != nil { - log.Fatal(err) - } - // TODO: derive the ascent from the face's metrics. - const ascent = 11 - - dst := image.NewRGBA(image.Rect(0, 0, 4*7, 13)) - draw.Draw(dst, dst.Bounds(), image.Black, image.Point{}, draw.Src) - d := &font.Drawer{ - Dst: dst, - Src: image.White, - Face: face, - Dot: fixed.P(0, ascent), - } - // Draw: - // - U+0053 LATIN CAPITAL LETTER S - // - U+03A3 GREEK CAPITAL LETTER SIGMA - // - U+222B INTEGRAL - // - U+3055 HIRAGANA LETTER SA - // The testdata does not contain the CJK subfont files, so U+3055 HIRAGANA - // LETTER SA (さ) should be rendered as U+FFFD REPLACEMENT CHARACTER (�). - // - // The missing subfont file will trigger an "open - // ../testdata/shinonome/k12.3000: no such file or directory" log message. - // This is expected and can be ignored. - d.DrawString("SΣ∫さ") - - // Convert the dst image to ASCII art. - var out []byte - b := dst.Bounds() - for y := b.Min.Y; y < b.Max.Y; y++ { - out = append(out, '0'+byte(y%10), ' ') - for x := b.Min.X; x < b.Max.X; x++ { - if dst.RGBAAt(x, y).R > 0 { - out = append(out, 'X') - } else { - out = append(out, '.') - } - } - // Highlight the last row before the baseline. Glyphs like 'S' without - // descenders should not affect any pixels whose Y coordinate is >= the - // baseline. - if y == ascent-1 { - out = append(out, '_') - } - out = append(out, '\n') - } - os.Stdout.Write(out) - - // Output: - // 0 ..................X......... - // 1 .................X.X........ - // 2 .XXXX..XXXXXX....X.....XXX.. - // 3 X....X.X.........X....XX.XX. - // 4 X.......X........X....X.X.X. - // 5 X........X.......X....XXX.X. - // 6 .XXXX.....X......X....XX.XX. - // 7 .....X...X.......X....XX.XX. - // 8 .....X..X........X....XXXXX. - // 9 X....X.X.........X....XX.XX. - // 0 .XXXX..XXXXXX....X.....XXX.._ - // 1 ...............X.X.......... - // 2 ................X........... -} diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.0000 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.0000 Binary files differdeleted file mode 100644 index 9509cdf97..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.0000 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.0100 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.0100 Binary files differdeleted file mode 100644 index 0a79f555c..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.0100 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.0200 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.0200 Binary files differdeleted file mode 100644 index e25247ecc..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.0200 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.0300 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.0300 Binary files differdeleted file mode 100644 index 86eb33f42..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.0300 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.0400 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.0400 Binary files differdeleted file mode 100644 index 43300ad95..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.0400 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.0500 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.0500 Binary files differdeleted file mode 100644 index 2d9326708..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.0500 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.0E00 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.0E00 Binary files differdeleted file mode 100644 index 7c51a1e51..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.0E00 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.1000 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.1000 Binary files differdeleted file mode 100644 index 019698c8d..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.1000 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.1600 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.1600 Binary files differdeleted file mode 100644 index f69a97745..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.1600 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.1E00 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.1E00 Binary files differdeleted file mode 100644 index 3bc5068cf..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.1E00 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.1F00 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.1F00 Binary files differdeleted file mode 100644 index 43b320be1..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.1F00 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2000 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2000 Binary files differdeleted file mode 100644 index f9244e1cf..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2000 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2100 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2100 Binary files differdeleted file mode 100644 index c565abb7d..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2100 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2200 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2200 Binary files differdeleted file mode 100644 index a992d3521..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2200 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2300 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2300 Binary files differdeleted file mode 100644 index 8ff099d19..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2300 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2400 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2400 Binary files differdeleted file mode 100644 index 99927a11f..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2400 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2500 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2500 Binary files differdeleted file mode 100644 index 60dc224cd..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2500 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2600 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2600 Binary files differdeleted file mode 100644 index 1b393c28b..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2600 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2700 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2700 Binary files differdeleted file mode 100644 index c39a57206..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2700 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2800 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2800 Binary files differdeleted file mode 100644 index c7572de47..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2800 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2A00 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2A00 Binary files differdeleted file mode 100644 index 71791ace6..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.2A00 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.3000 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.3000 Binary files differdeleted file mode 100644 index fb830f4fb..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.3000 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.FB00 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.FB00 Binary files differdeleted file mode 100644 index 3a0b30a99..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.FB00 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.FE00 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.FE00 Binary files differdeleted file mode 100644 index 3989d2673..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.FE00 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.FF00 b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.FF00 Binary files differdeleted file mode 100644 index 78ed39865..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/7x13.FF00 +++ /dev/null diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/README b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/README deleted file mode 100644 index a39f8a5e2..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/README +++ /dev/null @@ -1,9 +0,0 @@ -These font files were copied from the Plan 9 Port's font/fixed directory. The -README in that directory states that: "These fonts are converted from the BDFs -in the XFree86 distribution. They were all marked as public domain." - -The Plan 9 Port is at https://github.com/9fans/plan9port and the copy was made -from commit a78b1841 (2015-08-18). - -The unicode.7x13.font file also refers to a ../shinonome directory, but this -testdata does not include those subfont files. diff --git a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/unicode.7x13.font b/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/unicode.7x13.font deleted file mode 100644 index 337b4286b..000000000 --- a/Godeps/_workspace/src/golang.org/x/image/font/testdata/fixed/unicode.7x13.font +++ /dev/null @@ -1,68 +0,0 @@ -13 10 -0x0000 0x001F 7x13.2400 -0x0000 0x00FF 7x13.0000 -0x0100 0x01FF 7x13.0100 -0x0200 0x02FF 7x13.0200 -0x0300 0x03FF 7x13.0300 -0x0400 0x04FF 7x13.0400 -0x0500 0x05FF 7x13.0500 -0x0E00 0x0EFF 7x13.0E00 -0x1000 0x10FF 7x13.1000 -0x1600 0x16FF 7x13.1600 -0x1E00 0x1EFF 7x13.1E00 -0x1F00 0x1FFF 7x13.1F00 -0x2000 0x20FF 7x13.2000 -0x2100 0x21FF 7x13.2100 -0x2200 0x22FF 7x13.2200 -0x2300 0x23FF 7x13.2300 -0x2400 0x24FF 7x13.2400 -0x2500 0x25FF 7x13.2500 -0x2600 0x26FF 7x13.2600 -0x2700 0x27FF 7x13.2700 -0x2800 0x28FF 7x13.2800 -0x2A00 0x2AFF 7x13.2A00 -0x3000 0x30fe ../shinonome/k12.3000 -0x4e00 0x4ffe ../shinonome/k12.4e00 -0x5005 0x51fe ../shinonome/k12.5005 -0x5200 0x53fa ../shinonome/k12.5200 -0x5401 0x55fe ../shinonome/k12.5401 -0x5606 0x57fc ../shinonome/k12.5606 -0x5800 0x59ff ../shinonome/k12.5800 -0x5a01 0x5bff ../shinonome/k12.5a01 -0x5c01 0x5dfe ../shinonome/k12.5c01 -0x5e02 0x5fff ../shinonome/k12.5e02 -0x600e 0x61ff ../shinonome/k12.600e -0x6200 0x63fa ../shinonome/k12.6200 -0x6406 0x65fb ../shinonome/k12.6406 -0x6602 0x67ff ../shinonome/k12.6602 -0x6802 0x69ff ../shinonome/k12.6802 -0x6a02 0x6bf3 ../shinonome/k12.6a02 -0x6c08 0x6dfb ../shinonome/k12.6c08 -0x6e05 0x6ffe ../shinonome/k12.6e05 -0x7001 0x71ff ../shinonome/k12.7001 -0x7206 0x73fe ../shinonome/k12.7206 -0x7403 0x75ff ../shinonome/k12.7403 -0x7601 0x77fc ../shinonome/k12.7601 -0x7802 0x79fb ../shinonome/k12.7802 -0x7a00 0x7bf7 ../shinonome/k12.7a00 -0x7c00 0x7dfb ../shinonome/k12.7c00 -0x7e01 0x7ffc ../shinonome/k12.7e01 -0x8000 0x81fe ../shinonome/k12.8000 -0x8201 0x83fd ../shinonome/k12.8201 -0x8403 0x85fe ../shinonome/k12.8403 -0x8602 0x87fe ../shinonome/k12.8602 -0x8805 0x89f8 ../shinonome/k12.8805 -0x8a00 0x8b9a ../shinonome/k12.8a00 -0x8c37 0x8dff ../shinonome/k12.8c37 -0x8e08 0x8ffd ../shinonome/k12.8e08 -0x9000 0x91ff ../shinonome/k12.9000 -0x920d 0x93e8 ../shinonome/k12.920d -0x9403 0x95e5 ../shinonome/k12.9403 -0x961c 0x97ff ../shinonome/k12.961c -0x9801 0x99ff ../shinonome/k12.9801 -0x9a01 0x9bf5 ../shinonome/k12.9a01 -0x9c04 0x9dfd ../shinonome/k12.9c04 -0x9e1a 0x9fa0 ../shinonome/k12.9e1a -0xFB00 0xFBFF 7x13.FB00 -0xFE00 0xFEFF 7x13.FE00 -0xFF00 0xFFFF 7x13.FF00 |