fix paths from git.gutmet.org to git.fireandbrimst.one/aw
This commit is contained in:
parent
c2f707aba7
commit
a594737139
|
@ -5,7 +5,7 @@
|
||||||
// Package bmp implements a BMP image decoder and encoder.
|
// Package bmp implements a BMP image decoder and encoder.
|
||||||
//
|
//
|
||||||
// The BMP specification is at http://www.digicamsoft.com/bmp/bmp.html.
|
// The BMP specification is at http://www.digicamsoft.com/bmp/bmp.html.
|
||||||
package bmp // import "git.gutmet.org/golang-image.git/bmp"
|
package bmp // import "git.fireandbrimst.one/aw/golang-image/bmp"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
|
@ -2,14 +2,16 @@
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
//
|
//
|
||||||
// This build tag means that "go install git.gutmet.org/golang-image.git/..." doesn't
|
// This build tag means that "go install git.fireandbrimst.one/aw/golang-image/..." doesn't
|
||||||
// install this manual test. Use "go run main.go" to explicitly run it.
|
// install this manual test. Use "go run main.go" to explicitly run it.
|
||||||
|
|
||||||
// Program webp-manual-test checks that the Go WEBP library's decodings match
|
// Program webp-manual-test checks that the Go WEBP library's decodings match
|
||||||
// the C WEBP library's.
|
// the C WEBP library's.
|
||||||
package main // import "git.gutmet.org/golang-image.git/cmd/webp-manual-test"
|
package main // import "git.fireandbrimst.one/aw/golang-image/cmd/webp-manual-test"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
@ -25,7 +27,7 @@ import (
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/webp"
|
"git.fireandbrimst.one/aw/golang-image/webp"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -13,8 +13,8 @@ import (
|
||||||
"math"
|
"math"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/draw"
|
"git.fireandbrimst.one/aw/golang-image/draw"
|
||||||
"git.gutmet.org/golang-image.git/math/f64"
|
"git.fireandbrimst.one/aw/golang-image/math/f64"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleDraw() {
|
func ExampleDraw() {
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
@ -29,7 +30,7 @@ func main() {
|
||||||
"\"image/color\"\n" +
|
"\"image/color\"\n" +
|
||||||
"\"math\"\n" +
|
"\"math\"\n" +
|
||||||
"\n" +
|
"\n" +
|
||||||
"\"git.gutmet.org/golang-image.git/math/f64\"\n" +
|
"\"git.fireandbrimst.one/aw/golang-image/math/f64\"\n" +
|
||||||
")\n")
|
")\n")
|
||||||
|
|
||||||
gen(w, "nnInterpolator", codeNNScaleLeaf, codeNNTransformLeaf)
|
gen(w, "nnInterpolator", codeNNScaleLeaf, codeNNTransformLeaf)
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"image/color"
|
"image/color"
|
||||||
"math"
|
"math"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/math/f64"
|
"git.fireandbrimst.one/aw/golang-image/math/f64"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (z nnInterpolator) Scale(dst Image, dr image.Rectangle, src image.Image, sr image.Rectangle, op Op, opts *Options) {
|
func (z nnInterpolator) Scale(dst Image, dr image.Rectangle, src image.Image, sr image.Rectangle, op Op, opts *Options) {
|
||||||
|
|
|
@ -12,7 +12,7 @@ import (
|
||||||
"math"
|
"math"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/math/f64"
|
"git.fireandbrimst.one/aw/golang-image/math/f64"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Copy copies the part of the source image defined by src and sr and writes
|
// Copy copies the part of the source image defined by src and sr and writes
|
||||||
|
@ -46,8 +46,8 @@ type Scaler interface {
|
||||||
//
|
//
|
||||||
// For example, if m is the matrix
|
// For example, if m is the matrix
|
||||||
//
|
//
|
||||||
// m00 m01 m02
|
// m00 m01 m02
|
||||||
// m10 m11 m12
|
// m10 m11 m12
|
||||||
//
|
//
|
||||||
// then the src-space point (sx, sy) maps to the dst-space point
|
// then the src-space point (sx, sy) maps to the dst-space point
|
||||||
// (m00*sx + m01*sy + m02, m10*sx + m11*sy + m12).
|
// (m00*sx + m01*sy + m02, m10*sx + m11*sy + m12).
|
||||||
|
@ -98,9 +98,9 @@ type Options struct {
|
||||||
// have a 1:1 correspondence.
|
// have a 1:1 correspondence.
|
||||||
//
|
//
|
||||||
// Of the interpolators provided by this package:
|
// Of the interpolators provided by this package:
|
||||||
// - NearestNeighbor is fast but usually looks worst.
|
// - NearestNeighbor is fast but usually looks worst.
|
||||||
// - CatmullRom is slow but usually looks best.
|
// - CatmullRom is slow but usually looks best.
|
||||||
// - ApproxBiLinear has reasonable speed and quality.
|
// - ApproxBiLinear has reasonable speed and quality.
|
||||||
//
|
//
|
||||||
// The time taken depends on the size of dr. For kernel interpolators, the
|
// The time taken depends on the size of dr. For kernel interpolators, the
|
||||||
// speed also depends on the size of sr, and so are often slower than
|
// speed also depends on the size of sr, and so are often slower than
|
||||||
|
|
|
@ -16,7 +16,7 @@ import (
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/math/f64"
|
"git.fireandbrimst.one/aw/golang-image/math/f64"
|
||||||
|
|
||||||
_ "image/jpeg"
|
_ "image/jpeg"
|
||||||
)
|
)
|
||||||
|
|
|
@ -2,9 +2,11 @@
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build example
|
||||||
// +build example
|
// +build example
|
||||||
|
|
||||||
//
|
//
|
||||||
// This build tag means that "go install git.gutmet.org/golang-image.git/..." doesn't
|
// This build tag means that "go install git.fireandbrimst.one/aw/golang-image/..." doesn't
|
||||||
// install this example program. Use "go run main.go" to run it or "go install
|
// install this example program. Use "go run main.go" to run it or "go install
|
||||||
// -tags=example" to install it.
|
// -tags=example" to install it.
|
||||||
|
|
||||||
|
@ -23,9 +25,9 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/font"
|
"git.fireandbrimst.one/aw/golang-image/font"
|
||||||
"git.gutmet.org/golang-image.git/font/plan9font"
|
"git.fireandbrimst.one/aw/golang-image/font/plan9font"
|
||||||
"git.gutmet.org/golang-image.git/math/fixed"
|
"git.fireandbrimst.one/aw/golang-image/math/fixed"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -5,13 +5,13 @@
|
||||||
//go:generate go run gen.go
|
//go:generate go run gen.go
|
||||||
|
|
||||||
// Package basicfont provides fixed-size font faces.
|
// Package basicfont provides fixed-size font faces.
|
||||||
package basicfont // import "git.gutmet.org/golang-image.git/font/basicfont"
|
package basicfont // import "git.fireandbrimst.one/aw/golang-image/font/basicfont"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"image"
|
"image"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/font"
|
"git.fireandbrimst.one/aw/golang-image/font"
|
||||||
"git.gutmet.org/golang-image.git/math/fixed"
|
"git.fireandbrimst.one/aw/golang-image/math/fixed"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Range maps a contiguous range of runes to vertically adjacent sub-images of
|
// Range maps a contiguous range of runes to vertically adjacent sub-images of
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"image"
|
"image"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/font"
|
"git.fireandbrimst.one/aw/golang-image/font"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestMetrics(t *testing.T) {
|
func TestMetrics(t *testing.T) {
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
// This program generates data.go.
|
// This program generates data.go.
|
||||||
|
@ -18,9 +19,9 @@ import (
|
||||||
"path"
|
"path"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/font"
|
"git.fireandbrimst.one/aw/golang-image/font"
|
||||||
"git.gutmet.org/golang-image.git/font/plan9font"
|
"git.fireandbrimst.one/aw/golang-image/font/plan9font"
|
||||||
"git.gutmet.org/golang-image.git/math/fixed"
|
"git.fireandbrimst.one/aw/golang-image/math/fixed"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
//
|
//
|
||||||
// Other packages provide font face implementations. For example, a truetype
|
// Other packages provide font face implementations. For example, a truetype
|
||||||
// package would provide one based on .ttf font files.
|
// package would provide one based on .ttf font files.
|
||||||
package font // import "git.gutmet.org/golang-image.git/font"
|
package font // import "git.fireandbrimst.one/aw/golang-image/font"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"image"
|
"image"
|
||||||
|
@ -15,7 +15,7 @@ import (
|
||||||
"io"
|
"io"
|
||||||
"unicode/utf8"
|
"unicode/utf8"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/math/fixed"
|
"git.fireandbrimst.one/aw/golang-image/math/fixed"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO: who is responsible for caches (glyph images, glyph indices, kerns)?
|
// TODO: who is responsible for caches (glyph images, glyph indices, kerns)?
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/math/fixed"
|
"git.fireandbrimst.one/aw/golang-image/math/fixed"
|
||||||
)
|
)
|
||||||
|
|
||||||
const toyAdvance = fixed.Int26_6(10 << 6)
|
const toyAdvance = fixed.Int26_6(10 << 6)
|
||||||
|
|
|
@ -5,7 +5,7 @@ package inconsolata
|
||||||
import (
|
import (
|
||||||
"image"
|
"image"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/font/basicfont"
|
"git.fireandbrimst.one/aw/golang-image/font/basicfont"
|
||||||
)
|
)
|
||||||
|
|
||||||
// bold8x16 contains 289 10×17 glyphs in 49130 Pix bytes.
|
// bold8x16 contains 289 10×17 glyphs in 49130 Pix bytes.
|
||||||
|
|
|
@ -16,10 +16,10 @@
|
||||||
//
|
//
|
||||||
// Inconsolata's home page is at
|
// Inconsolata's home page is at
|
||||||
// http://www.levien.com/type/myfonts/inconsolata.html
|
// http://www.levien.com/type/myfonts/inconsolata.html
|
||||||
package inconsolata // import "git.gutmet.org/golang-image.git/font/inconsolata"
|
package inconsolata // import "git.fireandbrimst.one/aw/golang-image/font/inconsolata"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.gutmet.org/golang-image.git/font/basicfont"
|
"git.fireandbrimst.one/aw/golang-image/font/basicfont"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Regular8x16 is a regular weight, 8x16 font face.
|
// Regular8x16 is a regular weight, 8x16 font face.
|
||||||
|
|
|
@ -5,7 +5,7 @@ package inconsolata
|
||||||
import (
|
import (
|
||||||
"image"
|
"image"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/font/basicfont"
|
"git.fireandbrimst.one/aw/golang-image/font/basicfont"
|
||||||
)
|
)
|
||||||
|
|
||||||
// regular8x16 contains 289 9×17 glyphs in 44217 Pix bytes.
|
// regular8x16 contains 289 9×17 glyphs in 44217 Pix bytes.
|
||||||
|
|
|
@ -7,9 +7,9 @@ package opentype
|
||||||
import (
|
import (
|
||||||
"image"
|
"image"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/font"
|
"git.fireandbrimst.one/aw/golang-image/font"
|
||||||
"git.gutmet.org/golang-image.git/font/sfnt"
|
"git.fireandbrimst.one/aw/golang-image/font/sfnt"
|
||||||
"git.gutmet.org/golang-image.git/math/fixed"
|
"git.fireandbrimst.one/aw/golang-image/math/fixed"
|
||||||
)
|
)
|
||||||
|
|
||||||
// FaceOptions describes the possible options given to NewFace when
|
// FaceOptions describes the possible options given to NewFace when
|
||||||
|
|
|
@ -8,10 +8,10 @@ import (
|
||||||
"image"
|
"image"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/font"
|
"git.fireandbrimst.one/aw/golang-image/font"
|
||||||
"git.gutmet.org/golang-image.git/font/gofont/goregular"
|
"git.fireandbrimst.one/aw/golang-image/font/gofont/goregular"
|
||||||
"git.gutmet.org/golang-image.git/font/sfnt"
|
"git.fireandbrimst.one/aw/golang-image/font/sfnt"
|
||||||
"git.gutmet.org/golang-image.git/math/fixed"
|
"git.fireandbrimst.one/aw/golang-image/math/fixed"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -4,4 +4,4 @@
|
||||||
|
|
||||||
// Package opentype implements the font.Face interface based on SFNT
|
// Package opentype implements the font.Face interface based on SFNT
|
||||||
// font file formats.
|
// font file formats.
|
||||||
package opentype // import "git.gutmet.org/golang-image.git/font/opentype"
|
package opentype // import "git.fireandbrimst.one/aw/golang-image/font/opentype"
|
||||||
|
|
|
@ -13,9 +13,9 @@ import (
|
||||||
"path"
|
"path"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/font"
|
"git.fireandbrimst.one/aw/golang-image/font"
|
||||||
"git.gutmet.org/golang-image.git/font/plan9font"
|
"git.fireandbrimst.one/aw/golang-image/font/plan9font"
|
||||||
"git.gutmet.org/golang-image.git/math/fixed"
|
"git.fireandbrimst.one/aw/golang-image/math/fixed"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleParseFont() {
|
func ExampleParseFont() {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
// Package plan9font implements font faces for the Plan 9 font and subfont file
|
// Package plan9font implements font faces for the Plan 9 font and subfont file
|
||||||
// formats. These formats are described at
|
// formats. These formats are described at
|
||||||
// http://plan9.bell-labs.com/magic/man2html/6/font
|
// http://plan9.bell-labs.com/magic/man2html/6/font
|
||||||
package plan9font // import "git.gutmet.org/golang-image.git/font/plan9font"
|
package plan9font // import "git.fireandbrimst.one/aw/golang-image/font/plan9font"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
@ -17,8 +17,8 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/font"
|
"git.fireandbrimst.one/aw/golang-image/font"
|
||||||
"git.gutmet.org/golang-image.git/math/fixed"
|
"git.fireandbrimst.one/aw/golang-image/math/fixed"
|
||||||
)
|
)
|
||||||
|
|
||||||
// fontchar describes one character glyph in a subfont.
|
// fontchar describes one character glyph in a subfont.
|
||||||
|
|
|
@ -11,7 +11,7 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/font"
|
"git.fireandbrimst.one/aw/golang-image/font"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestMetrics(t *testing.T) {
|
func TestMetrics(t *testing.T) {
|
||||||
|
|
|
@ -10,10 +10,10 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/font/gofont/goregular"
|
"git.fireandbrimst.one/aw/golang-image/font/gofont/goregular"
|
||||||
"git.gutmet.org/golang-image.git/font/sfnt"
|
"git.fireandbrimst.one/aw/golang-image/font/sfnt"
|
||||||
"git.gutmet.org/golang-image.git/math/fixed"
|
"git.fireandbrimst.one/aw/golang-image/math/fixed"
|
||||||
"git.gutmet.org/golang-image.git/vector"
|
"git.fireandbrimst.one/aw/golang-image/vector"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Example_rasterizeGlyph() {
|
func Example_rasterizeGlyph() {
|
||||||
|
|
|
@ -52,7 +52,7 @@ import (
|
||||||
"math"
|
"math"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/math/fixed"
|
"git.fireandbrimst.one/aw/golang-image/math/fixed"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -10,7 +10,7 @@ made by companies such as Adobe and Microsoft. These fonts are generally
|
||||||
available, but copies are not explicitly included in this repository due to
|
available, but copies are not explicitly included in this repository due to
|
||||||
licensing differences or file size concerns. To opt-in, run:
|
licensing differences or file size concerns. To opt-in, run:
|
||||||
|
|
||||||
go test git.gutmet.org/golang-image.git/font/sfnt -args -proprietary
|
go test git.fireandbrimst.one/aw/golang-image/font/sfnt -args -proprietary
|
||||||
|
|
||||||
Not all tests pass out-of-the-box on all systems. For example, the Microsoft
|
Not all tests pass out-of-the-box on all systems. For example, the Microsoft
|
||||||
Times New Roman font is downloadable gratis even on non-Windows systems, but as
|
Times New Roman font is downloadable gratis even on non-Windows systems, but as
|
||||||
|
@ -19,7 +19,7 @@ End User License Agreement (EULA) and a CAB format decoder. These tests assume
|
||||||
that such fonts have already been installed. You may need to specify the
|
that such fonts have already been installed. You may need to specify the
|
||||||
directories for these fonts:
|
directories for these fonts:
|
||||||
|
|
||||||
go test git.gutmet.org/golang-image.git/font/sfnt -args -proprietary \
|
go test git.fireandbrimst.one/aw/golang-image/font/sfnt -args -proprietary \
|
||||||
-adobeDir=$HOME/fonts/adobe \
|
-adobeDir=$HOME/fonts/adobe \
|
||||||
-appleDir=$HOME/fonts/apple \
|
-appleDir=$HOME/fonts/apple \
|
||||||
-dejavuDir=$HOME/fonts/dejavu \
|
-dejavuDir=$HOME/fonts/dejavu \
|
||||||
|
@ -28,7 +28,7 @@ go test git.gutmet.org/golang-image.git/font/sfnt -args -proprietary \
|
||||||
|
|
||||||
To only run those tests for the Microsoft fonts:
|
To only run those tests for the Microsoft fonts:
|
||||||
|
|
||||||
go test git.gutmet.org/golang-image.git/font/sfnt -test.run=ProprietaryMicrosoft -args -proprietary etc
|
go test git.fireandbrimst.one/aw/golang-image/font/sfnt -test.run=ProprietaryMicrosoft -args -proprietary etc
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// TODO: enable Apple/Microsoft tests by default on Darwin/Windows?
|
// TODO: enable Apple/Microsoft tests by default on Darwin/Windows?
|
||||||
|
@ -42,8 +42,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/font"
|
"git.fireandbrimst.one/aw/golang-image/font"
|
||||||
"git.gutmet.org/golang-image.git/math/fixed"
|
"git.fireandbrimst.one/aw/golang-image/math/fixed"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -573,9 +573,9 @@ var proprietaryGlyphIndexTestCases = map[string]map[rune]GlyphIndex{
|
||||||
|
|
||||||
// proprietaryGlyphTestCases hold a sample of each font's glyph vectors. The
|
// proprietaryGlyphTestCases hold a sample of each font's glyph vectors. The
|
||||||
// numerical values can be verified by running the ttx tool, remembering that:
|
// numerical values can be verified by running the ttx tool, remembering that:
|
||||||
// - for PostScript glyphs, ttx coordinates are relative.
|
// - for PostScript glyphs, ttx coordinates are relative.
|
||||||
// - for TrueType glyphs, ttx coordinates are absolute, and consecutive
|
// - for TrueType glyphs, ttx coordinates are absolute, and consecutive
|
||||||
// off-curve points implies an on-curve point at the midpoint.
|
// off-curve points implies an on-curve point at the midpoint.
|
||||||
var proprietaryGlyphTestCases = map[string]map[rune][]Segment{
|
var proprietaryGlyphTestCases = map[string]map[rune][]Segment{
|
||||||
"adobe/SourceHanSansSC-Regular.otf": {
|
"adobe/SourceHanSansSC-Regular.otf": {
|
||||||
'!': {
|
'!': {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
// Package sfnt implements a decoder for SFNT font file formats, including
|
// Package sfnt implements a decoder for SFNT font file formats, including
|
||||||
// TrueType and OpenType.
|
// TrueType and OpenType.
|
||||||
package sfnt // import "git.gutmet.org/golang-image.git/font/sfnt"
|
package sfnt // import "git.fireandbrimst.one/aw/golang-image/font/sfnt"
|
||||||
|
|
||||||
// This implementation was written primarily to the
|
// This implementation was written primarily to the
|
||||||
// https://www.microsoft.com/en-us/Typography/OpenTypeSpecification.aspx
|
// https://www.microsoft.com/en-us/Typography/OpenTypeSpecification.aspx
|
||||||
|
@ -24,8 +24,8 @@ import (
|
||||||
"image"
|
"image"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/font"
|
"git.fireandbrimst.one/aw/golang-image/font"
|
||||||
"git.gutmet.org/golang-image.git/math/fixed"
|
"git.fireandbrimst.one/aw/golang-image/math/fixed"
|
||||||
"golang.org/x/text/encoding/charmap"
|
"golang.org/x/text/encoding/charmap"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -12,11 +12,11 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/font"
|
"git.fireandbrimst.one/aw/golang-image/font"
|
||||||
"git.gutmet.org/golang-image.git/font/gofont/gobold"
|
"git.fireandbrimst.one/aw/golang-image/font/gofont/gobold"
|
||||||
"git.gutmet.org/golang-image.git/font/gofont/gomono"
|
"git.fireandbrimst.one/aw/golang-image/font/gofont/gomono"
|
||||||
"git.gutmet.org/golang-image.git/font/gofont/goregular"
|
"git.fireandbrimst.one/aw/golang-image/font/gofont/goregular"
|
||||||
"git.gutmet.org/golang-image.git/math/fixed"
|
"git.fireandbrimst.one/aw/golang-image/math/fixed"
|
||||||
)
|
)
|
||||||
|
|
||||||
func pt(x, y fixed.Int26_6) fixed.Point26_6 {
|
func pt(x, y fixed.Int26_6) fixed.Point26_6 {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
package sfnt
|
package sfnt
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.gutmet.org/golang-image.git/math/fixed"
|
"git.fireandbrimst.one/aw/golang-image/math/fixed"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Flags for simple (non-compound) glyphs.
|
// Flags for simple (non-compound) glyphs.
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// Package f32 implements float32 vector and matrix types.
|
// Package f32 implements float32 vector and matrix types.
|
||||||
package f32 // import "git.gutmet.org/golang-image.git/math/f32"
|
package f32 // import "git.fireandbrimst.one/aw/golang-image/math/f32"
|
||||||
|
|
||||||
// Vec2 is a 2-element vector.
|
// Vec2 is a 2-element vector.
|
||||||
type Vec2 [2]float32
|
type Vec2 [2]float32
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// Package f64 implements float64 vector and matrix types.
|
// Package f64 implements float64 vector and matrix types.
|
||||||
package f64 // import "git.gutmet.org/golang-image.git/math/f64"
|
package f64 // import "git.fireandbrimst.one/aw/golang-image/math/f64"
|
||||||
|
|
||||||
// Vec2 is a 2-element vector.
|
// Vec2 is a 2-element vector.
|
||||||
type Vec2 [2]float64
|
type Vec2 [2]float64
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// Package fixed implements fixed-point integer types.
|
// Package fixed implements fixed-point integer types.
|
||||||
package fixed // import "git.gutmet.org/golang-image.git/math/fixed"
|
package fixed // import "git.fireandbrimst.one/aw/golang-image/math/fixed"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
|
@ -11,7 +11,7 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/riff"
|
"git.fireandbrimst.one/aw/golang-image/riff"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleReader() {
|
func ExampleReader() {
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
//
|
//
|
||||||
// A detailed description of the format is at
|
// A detailed description of the format is at
|
||||||
// http://www.tactilemedia.com/info/MCI_Control_Info.html
|
// http://www.tactilemedia.com/info/MCI_Control_Info.html
|
||||||
package riff // import "git.gutmet.org/golang-image.git/riff"
|
package riff // import "git.fireandbrimst.one/aw/golang-image/riff"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// Package lzw implements the Lempel-Ziv-Welch compressed data format,
|
// Package lzw implements the Lempel-Ziv-Welch compressed data format,
|
||||||
// described in T. A. Welch, ``A Technique for High-Performance Data
|
// described in T. A. Welch, “A Technique for High-Performance Data
|
||||||
// Compression'', Computer, 17(6) (June 1984), pp 8-19.
|
// Compression”, Computer, 17(6) (June 1984), pp 8-19.
|
||||||
//
|
//
|
||||||
// In particular, it implements LZW as used by the TIFF file format, including
|
// In particular, it implements LZW as used by the TIFF file format, including
|
||||||
// an "off by one" algorithmic difference when compared to standard LZW.
|
// an "off by one" algorithmic difference when compared to standard LZW.
|
||||||
package lzw // import "git.gutmet.org/golang-image.git/tiff/lzw"
|
package lzw // import "git.fireandbrimst.one/aw/golang-image/tiff/lzw"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This file was branched from src/pkg/compress/lzw/reader.go in the
|
This file was branched from src/pkg/compress/lzw/reader.go in the
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
// Package tiff implements a TIFF image decoder and encoder.
|
// Package tiff implements a TIFF image decoder and encoder.
|
||||||
//
|
//
|
||||||
// The TIFF specification is at http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf
|
// The TIFF specification is at http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf
|
||||||
package tiff // import "git.gutmet.org/golang-image.git/tiff"
|
package tiff // import "git.fireandbrimst.one/aw/golang-image/tiff"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"compress/zlib"
|
"compress/zlib"
|
||||||
|
@ -17,7 +17,7 @@ import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"math"
|
"math"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/tiff/lzw"
|
"git.fireandbrimst.one/aw/golang-image/tiff/lzw"
|
||||||
)
|
)
|
||||||
|
|
||||||
// A FormatError reports that the input is not a valid TIFF image.
|
// A FormatError reports that the input is not a valid TIFF image.
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
// asmfmt is https://github.com/klauspost/asmfmt
|
// asmfmt is https://github.com/klauspost/asmfmt
|
||||||
|
|
||||||
// Package vector provides a rasterizer for 2-D vector graphics.
|
// Package vector provides a rasterizer for 2-D vector graphics.
|
||||||
package vector // import "git.gutmet.org/golang-image.git/vector"
|
package vector // import "git.fireandbrimst.one/aw/golang-image/vector"
|
||||||
|
|
||||||
// The rasterizer's design follows
|
// The rasterizer's design follows
|
||||||
// https://medium.com/@raphlinus/inside-the-fastest-font-renderer-in-the-world-75ae5270c445
|
// https://medium.com/@raphlinus/inside-the-fastest-font-renderer-in-the-world-75ae5270c445
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
// Package vp8 implements a decoder for the VP8 lossy image format.
|
// Package vp8 implements a decoder for the VP8 lossy image format.
|
||||||
//
|
//
|
||||||
// The VP8 specification is RFC 6386.
|
// The VP8 specification is RFC 6386.
|
||||||
package vp8 // import "git.gutmet.org/golang-image.git/vp8"
|
package vp8 // import "git.fireandbrimst.one/aw/golang-image/vp8"
|
||||||
|
|
||||||
// This file implements the top-level decoding algorithm.
|
// This file implements the top-level decoding algorithm.
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
//
|
//
|
||||||
// The VP8L specification is at:
|
// The VP8L specification is at:
|
||||||
// https://developers.google.com/speed/webp/docs/riff_container
|
// https://developers.google.com/speed/webp/docs/riff_container
|
||||||
package vp8l // import "git.gutmet.org/golang-image.git/vp8l"
|
package vp8l // import "git.fireandbrimst.one/aw/golang-image/vp8l"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
|
|
|
@ -11,9 +11,9 @@ import (
|
||||||
"image/color"
|
"image/color"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"git.gutmet.org/golang-image.git/riff"
|
"git.fireandbrimst.one/aw/golang-image/riff"
|
||||||
"git.gutmet.org/golang-image.git/vp8"
|
"git.fireandbrimst.one/aw/golang-image/vp8"
|
||||||
"git.gutmet.org/golang-image.git/vp8l"
|
"git.fireandbrimst.one/aw/golang-image/vp8l"
|
||||||
)
|
)
|
||||||
|
|
||||||
var errInvalidFormat = errors.New("webp: invalid format")
|
var errInvalidFormat = errors.New("webp: invalid format")
|
||||||
|
|
|
@ -6,4 +6,4 @@
|
||||||
//
|
//
|
||||||
// WEBP is defined at:
|
// WEBP is defined at:
|
||||||
// https://developers.google.com/speed/webp/docs/riff_container
|
// https://developers.google.com/speed/webp/docs/riff_container
|
||||||
package webp // import "git.gutmet.org/golang-image.git/webp"
|
package webp // import "git.fireandbrimst.one/aw/golang-image/webp"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user