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

add note about not destroying face.Face to Atlas doc

parent ef5de4c8
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
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