We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ecfa16 commit 02704c9Copy full SHA for 02704c9
shiny/text/caret.go
@@ -602,10 +602,7 @@ func layout(f *Frame, l int32) {
602
if r == ' ' {
603
breakPoint = reader.bAndK()
604
}
605
- a, ok := f.face.GlyphAdvance(r)
606
- if !ok {
607
- panic("TODO: is falling back on the U+FFFD glyph the responsibility of the caller or the Face?")
608
- }
+ a, _ := f.face.GlyphAdvance(r)
609
advance += a
610
if r != ' ' && advance > f.maxWidth && breakPoint.b != 0 {
611
breakLine(f, l, breakPoint.b, breakPoint.k)
0 commit comments