\starttypescriptcollection[adobesource]

  \startluacode
  require("adobesource")
  \stopluacode

  \starttypescript[serif,sans,mono]
    [
      adobesource-extralight,
      adobesource-light,
      adobesource,
      adobesource-regular,
      adobesource-medium,
      adobesource-semibold,
      adobesource-bold,
      adobesource-black,
      adobesource-nodesignsize-extralight,
      adobesource-nodesignsize-light,
      adobesource-nodesignsize,
      adobesource-nodesignsize-regular,
      adobesource-nodesignsize-medium,
      adobesource-nodesignsize-semibold,
      adobesource-nodesignsize-bold,
      adobesource-nodesignsize-black,
    ]
    [name]
    \setups[font:fallback:\typescriptone]
    \definefontsynonym [\typescriptprefix{\typescriptone}]           [\ctxlua{context(userdata.adobesource.getfontname("\typescriptone", "\typescripttwo", false, false))}] [features=default]
    \definefontsynonym [\typescriptprefix{\typescriptone}Italic]     [\ctxlua{context(userdata.adobesource.getfontname("\typescriptone", "\typescripttwo", true,  false))}] [features=default]
    \definefontsynonym [\typescriptprefix{\typescriptone}Bold]       [\ctxlua{context(userdata.adobesource.getfontname("\typescriptone", "\typescripttwo", false, true))}]  [features=default]
    \definefontsynonym [\typescriptprefix{\typescriptone}BoldItalic] [\ctxlua{context(userdata.adobesource.getfontname("\typescriptone", "\typescripttwo", true,  true))}]  [features=default]
  \stoptypescript

  \starttypescript
    [
      adobesource-extralight,
      adobesource-light,
      adobesource,
      adobesource-regular,
      adobesource-medium,
      adobesource-semibold,
      adobesource-bold,
      adobesource-black,
    ]
    \loadfontgoodies[adobesource-serif]
    \definetypeface [\typescriptone] [rm] [serif] [\typescriptone] [default] [designsize=auto]
    \definetypeface [\typescriptone] [ss] [sans]  [\typescriptone] [default]
    \definetypeface [\typescriptone] [tt] [mono]  [\typescriptone] [default]
  \stoptypescript

  \starttypescript
    [
      adobesource-nodesignsize-extralight,
      adobesource-nodesignsize-light,
      adobesource-nodesignsize,
      adobesource-nodesignsize-regular,
      adobesource-nodesignsize-medium,
      adobesource-nodesignsize-semibold,
      adobesource-nodesignsize-bold,
      adobesource-nodesignsize-black,
    ]
    \definetypeface [\typescriptone] [rm] [serif] [\typescriptone] [default]
    \definetypeface [\typescriptone] [ss] [sans]  [\typescriptone] [default]
    \definetypeface [\typescriptone] [tt] [mono]  [\typescriptone] [default]
  \stoptypescript

  \starttypescript [serif]
    [
      adobesource-caption-extralight,
      adobesource-caption-light,
      adobesource-caption,
      adobesource-caption-semibold,
      adobesource-caption-bold,
      adobesource-caption-black,
      adobesource-smtext-extralight,
      adobesource-smtext-light,
      adobesource-smtext,
      adobesource-smtext-semibold,
      adobesource-smtext-bold,
      adobesource-smtext-black,
      adobesource-subhead-extralight,
      adobesource-subhead-light,
      adobesource-subhead,
      adobesource-subhead-semibold,
      adobesource-subhead-bold,
      adobesource-subhead-black,
      adobesource-display-extralight,
      adobesource-display-light,
      adobesource-display,
      adobesource-display-semibold,
      adobesource-display-bold,
      adobesource-display-black,
    ]
    [name]
    \setups[font:fallback:serif]
    \definefontsynonym [Serif]           [\ctxlua{context(userdata.adobesource.getfontname("\typescriptone", "\typescripttwo", false, false))}] [features=default]
    \definefontsynonym [SerifItalic]     [\ctxlua{context(userdata.adobesource.getfontname("\typescriptone", "\typescripttwo", true,  false))}] [features=default]
    \definefontsynonym [SerifBold]       [\ctxlua{context(userdata.adobesource.getfontname("\typescriptone", "\typescripttwo", false, true ))}] [features=default]
    \definefontsynonym [SerifBoldItalic] [\ctxlua{context(userdata.adobesource.getfontname("\typescriptone", "\typescripttwo", true,  true ))}] [features=default]
  \stoptypescript

  \starttypescript
    [
      adobesource-caption-extralight,
      adobesource-caption-light,
      adobesource-caption,
      adobesource-caption-semibold,
      adobesource-caption-bold,
      adobesource-caption-black,
      adobesource-smtext-extralight,
      adobesource-smtext-light,
      adobesource-smtext,
      adobesource-smtext-semibold,
      adobesource-smtext-bold,
      adobesource-smtext-black,
      adobesource-subhead-extralight,
      adobesource-subhead-light,
      adobesource-subhead,
      adobesource-subhead-semibold,
      adobesource-subhead-bold,
      adobesource-subhead-black,
      adobesource-display-extralight,
      adobesource-display-light,
      adobesource-display,
      adobesource-display-semibold,
      adobesource-display-bold,
      adobesource-display-black,
    ]
    \definetypeface [\typescriptone] [rm] [serif] [\typescriptone] [default]
  \stoptypescript

\stoptypescriptcollection
