Remove new7x13Atlas function
This commit is contained in:
parent
8d8d5cc9db
commit
b157c890d6
|
@ -9,7 +9,6 @@ import (
|
|||
|
||||
"github.com/faiface/pixel"
|
||||
"golang.org/x/image/font"
|
||||
"golang.org/x/image/font/basicfont"
|
||||
"golang.org/x/image/math/fixed"
|
||||
)
|
||||
|
||||
|
@ -175,10 +174,6 @@ func (a *Atlas) DrawRune(prevR, r rune, dot pixel.Vec) (rect, frame, bounds pixe
|
|||
return rect, glyph.Frame, bounds, dot
|
||||
}
|
||||
|
||||
func new7x13Atlas(runeSets ...[]rune) *Atlas {
|
||||
return NewAtlas(basicfont.Face7x13, runeSets...)
|
||||
}
|
||||
|
||||
type fixedGlyph struct {
|
||||
dot fixed.Point26_6
|
||||
frame fixed.Rectangle26_6
|
||||
|
|
|
@ -7,6 +7,7 @@ import (
|
|||
"unicode/utf8"
|
||||
|
||||
"github.com/faiface/pixel"
|
||||
"golang.org/x/image/font/basicfont"
|
||||
)
|
||||
|
||||
// ASCII is a set of all ASCII runes. These runes are codepoints from 32 to 127 inclusive.
|
||||
|
@ -17,7 +18,7 @@ func init() {
|
|||
for i := range ASCII {
|
||||
ASCII[i] = rune(32 + i)
|
||||
}
|
||||
Atlas7x13 = new7x13Atlas(ASCII)
|
||||
Atlas7x13 = NewAtlas(basicfont.Face7x13, ASCII)
|
||||
}
|
||||
|
||||
// RangeTable takes a *unicode.RangeTable and generates a set of runes contained within that
|
||||
|
|
Loading…
Reference in New Issue