From 3f6a1c34d37ddcb56cd73fb5b3d55bbd77b0c0fe Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 13 Jan 2020 13:52:33 +0100 Subject: [PATCH] text: correct Shaper comment about the default face Signed-off-by: Elias Naur --- text/shaper.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/text/shaper.go b/text/shaper.go index c67c6481..d9f0f584 100644 --- a/text/shaper.go +++ b/text/shaper.go @@ -3,9 +3,10 @@ package text import ( - "golang.org/x/image/font" "unicode/utf8" + "golang.org/x/image/font" + "gioui.org/op" "gioui.org/unit" "golang.org/x/image/math/fixed" @@ -14,8 +15,8 @@ import ( // Shaper implements layout and shaping of text and a cache of // computed results. // -// Specify the default and fallback font by calling Register with the -// empty Font. +// If a font matches no registered shape, Shaper falls back to the +// first registered face. type Shaper struct { def Typeface faces map[Font]*face