text: remove Metrics from Face interface

It's not used in text shaping, so let's not require it.

Note that the concrete opentype package still retains the Metrics
implementation.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-06-26 10:44:19 +02:00
parent db03b0898d
commit 913a780d64
2 changed files with 0 additions and 16 deletions
-2
View File
@@ -6,7 +6,6 @@ import (
"io"
"gioui.org/op"
"golang.org/x/image/font"
"golang.org/x/image/math/fixed"
)
@@ -50,7 +49,6 @@ type Font struct {
type Face interface {
Layout(ppem fixed.Int26_6, maxWidth int, txt io.Reader) ([]Line, error)
Shape(ppem fixed.Int26_6, str []Glyph) op.CallOp
Metrics(ppem fixed.Int26_6) font.Metrics
}
// Typeface identifies a particular typeface design. The empty