def to_glyphs(ufos_or_designspace, glyphs_module=classes, minimize_ufo_diffs=False):
if hasattr(ufos_or_designspace, "<STR_LIT>"):<EOL><INDENT>builder = GlyphsBuilder(<EOL>designspace=ufos_or_designspace,<EOL>glyphs_module=glyphs_module,<EOL>minimize_ufo_diffs=minimize_ufo_diffs,<EOL>)<EOL><DEDENT>else:<EOL><INDENT>builder = GlyphsBuilder(<EOL>ufos=ufos_or_designspace,<EOL>glyphs_module=glyphs_module,<EOL>minimize_ufo_diffs=minimize_ufo_diffs,<EOL>)<EOL><DEDENT>return builder.font<EOL>
Take a list of UFOs or a single DesignspaceDocument with attached UFOs
and converts it into a GSFont object.

The GSFont object is in-memory, it's up to the user to write it to the disk
if needed.

This should be the inverse function of `to_ufos` and `to_designspace`,
so we should have to_glyphs(to_ufos(font)) == font
and also to_glyphs(to_designspace(font)) == font