diff --git a/text/atlas.go b/text/atlas.go index 2670ecce7f5d4a37c6b037fb33555b1619c16afb..fc10135daae716c2ce2840f0e388ab07d5e7ce27 100644 --- a/text/atlas.go +++ b/text/atlas.go @@ -30,6 +30,8 @@ type Atlas struct { // NewAtlas creates a new Atlas containing glyphs of the given set of runes from the given font // face. +// +// Do not destroy or close the font.Face after creating the Atlas. func NewAtlas(face font.Face, runes []rune) *Atlas { fixedMapping, fixedBounds := makeSquareMapping(face, runes, fixed.I(2))