mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 01:15:35 +00:00
text: correct Shaper comment about the default face
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+4
-3
@@ -3,9 +3,10 @@
|
|||||||
package text
|
package text
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"golang.org/x/image/font"
|
|
||||||
"unicode/utf8"
|
"unicode/utf8"
|
||||||
|
|
||||||
|
"golang.org/x/image/font"
|
||||||
|
|
||||||
"gioui.org/op"
|
"gioui.org/op"
|
||||||
"gioui.org/unit"
|
"gioui.org/unit"
|
||||||
"golang.org/x/image/math/fixed"
|
"golang.org/x/image/math/fixed"
|
||||||
@@ -14,8 +15,8 @@ import (
|
|||||||
// Shaper implements layout and shaping of text and a cache of
|
// Shaper implements layout and shaping of text and a cache of
|
||||||
// computed results.
|
// computed results.
|
||||||
//
|
//
|
||||||
// Specify the default and fallback font by calling Register with the
|
// If a font matches no registered shape, Shaper falls back to the
|
||||||
// empty Font.
|
// first registered face.
|
||||||
type Shaper struct {
|
type Shaper struct {
|
||||||
def Typeface
|
def Typeface
|
||||||
faces map[Font]*face
|
faces map[Font]*face
|
||||||
|
|||||||
Reference in New Issue
Block a user