   font.download()
 
 ############################################################################################################
-unless module.parent?
-  do =>
-    await @demo()
-    # await @demo_glyph_copying()
-
+if require.main is module then do =>
+  # await @demo()
+  await @demo_glyph_copying()
+

  FS.writeFileSync path, buffer = Buffer.from font.toArrayBuffer()
  return buffer.length

#-----------------------------------------------------------------------------------------------------------
@demo = ->
  debug '^ot#332', ( k for k of OT )

#   $show  }                = SP.export()
#...........................................................................................................
OT                        = require 'opentype.js'
path_precision            = 5
SvgPath                   = require 'svgpath'
SVGTTF                    = require '../main'


#===========================================================================================================
#
#-----------------------------------------------------------------------------------------------------------
@load_font = ( path ) -> OT.loadSync path

