Skip to content
Snippets Groups Projects
Commit 863e1e2f authored by faiface's avatar faiface
Browse files

add note about not destroying face.Face to Atlas doc

parent e3268db3
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,8 @@ type Atlas struct { ...@@ -30,6 +30,8 @@ type Atlas struct {
// NewAtlas creates a new Atlas containing glyphs of the given set of runes from the given font // NewAtlas creates a new Atlas containing glyphs of the given set of runes from the given font
// face. // face.
//
// Do not destroy or close the font.Face after creating the Atlas.
func NewAtlas(face font.Face, runes []rune) *Atlas { func NewAtlas(face font.Face, runes []rune) *Atlas {
fixedMapping, fixedBounds := makeSquareMapping(face, runes, fixed.I(2)) fixedMapping, fixedBounds := makeSquareMapping(face, runes, fixed.I(2))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment