shiny/font: deprecate the font package.
It now lives at x/image/font, not x/exp/shiny/font. Change-Id: I65f61ec4ce680f42981016e09c36cd04e140861d Reviewed-on: https://go-review.googlesource.com/14149 Reviewed-by: David Symonds <dsymonds@golang.org>
This commit is contained in:
Родитель
f3c629011f
Коммит
0e69480b4b
|
@ -7,9 +7,11 @@
|
|||
//
|
||||
// Other packages provide font face implementations. For example, a truetype
|
||||
// package would provide one based on .ttf font files.
|
||||
//
|
||||
// Deprecated: use "golang.org/x/image/font" instead.
|
||||
package font
|
||||
|
||||
// TODO: move this from golang.org/x/exp to golang.org/x/image ??
|
||||
// TODO: delete this package. It was deprecated on 2015-09-01.
|
||||
|
||||
import (
|
||||
"image"
|
||||
|
@ -19,6 +21,10 @@ import (
|
|||
"golang.org/x/image/math/fixed"
|
||||
)
|
||||
|
||||
func init() {
|
||||
println(`"golang.org/x/exp/shiny/font" is deprecated. Use "golang.org/x/image/font" instead.`)
|
||||
}
|
||||
|
||||
// TODO: who is responsible for caches (glyph images, glyph indices, kerns)?
|
||||
// The Drawer or the Face?
|
||||
|
||||
|
|
|
@ -5,8 +5,12 @@
|
|||
// Package plan9font implements font faces for the Plan 9 font and subfont file
|
||||
// formats. These formats are described at
|
||||
// http://plan9.bell-labs.com/magic/man2html/6/font
|
||||
//
|
||||
// Deprecated: use "golang.org/x/image/font/plan9font" instead.
|
||||
package plan9font
|
||||
|
||||
// TODO: delete this package. It was deprecated on 2015-09-01.
|
||||
|
||||
// TODO: have a subface use an *image.Alpha instead of plan9Image implementing
|
||||
// the image.Image interface? The image/draw code has a fast path for
|
||||
// *image.Alpha masks.
|
||||
|
@ -25,6 +29,10 @@ import (
|
|||
"golang.org/x/image/math/fixed"
|
||||
)
|
||||
|
||||
func init() {
|
||||
println(`"golang.org/x/exp/shiny/font/plan9font" is deprecated. Use "golang.org/x/image/font/plan9font" instead.`)
|
||||
}
|
||||
|
||||
// fontchar describes one character glyph in a subfont.
|
||||
//
|
||||
// For more detail, look for "struct Fontchar" in
|
||||
|
|
Загрузка…
Ссылка в новой задаче